No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Hi You use [CODE]MessageBox.Show("This is a message");[/CODE]
What if: 1. you first create the follwing in the web.config file [code=xml] <appSettings> <add key="servicePath" value="http://yourmachin/MyService/Service.asmx"/> </appSettings>[/code] 2. Then you add [icode]using System.Configuration;[/icode] in the source file 3. in the page load method: [code] protected void Page_Load(object sender, EventArgs e) { ScriptManager1.Services.Add(new ServiceReference(ConfigurationManager.AppSettings["servicePath"].ToString())); }[/code] Will this help? /Frank
Hi You can do it like this (A simple example) [CODE] int len = FileUpload1.PostedFile.ContentLength; byte[] pic = new byte[len]; FileUpload1.PostedFile.InputStream.Read(pic, 0, len); string fup = FileUpload1.PostedFile.FileName; SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["dev"].ToString()); conn.Open(); SqlCommand cmd = new SqlCommand("insert into test(name,pic) values (@name,@pic)", conn); cmd.Parameters.AddWithValue("@name", fup); cmd.Parameters.AddWithValue("@pic", pic); cmd.ExecuteNonQuery()[/CODE] Hope this …
As a simplification, "GET" is basically for just getting (retrieving) data whereas "POST" may involve anything, like storing or updating data, or ordering a product, or sending E-mail. (Very simple) The action tells which file that will read / retrive your request. You can change this to what you want, …
The End.