Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #17.3K
Ranked #4K
~3K People Reached
Favorite Forums

5 Posted Topics

Member Avatar for sonakrish
Member Avatar for walflo
0
2K
Member Avatar for anish.anick

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

Member Avatar for LotusShiv
0
284
Member Avatar for ssreevidya.m

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 …

Member Avatar for ssreevidya.m
0
148
Member Avatar for chriscross86
Member Avatar for frank@furnes.nu
0
60
Member Avatar for chriscross86

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, …

Member Avatar for frank@furnes.nu
0
74

The End.