If what you want is sending some data via HTTP POST in your ASP.NET page's code-behind code, then you can use the WebRequest component suggested by subhash.shel.
Here are some other web references about using WebRequest component for HTTP request/response processing:
sudhir123
Member
94 Points
27 Posts
Post data to server using c# asp.net
Apr 10, 2012 07:35 AM|LINK
Hi
In my website i want to post data to server but using .cs page not using form action.
Thanx in advanced
Gayomard Meh...
Participant
964 Points
241 Posts
Re: Post data to server using c# asp.net
Apr 10, 2012 07:50 AM|LINK
If you have a autopostback property for the control set to true it will do a postback.. if that is what you want.
subhash.shel...
Contributor
2137 Points
487 Posts
Re: Post data to server using c# asp.net
Apr 10, 2012 07:56 AM|LINK
Hi,
you can ref. below link...it may help u.
http://msdn.microsoft.com/en-us/library/debx8sh9%28VS.80%29.aspx
Thanks
Subhash
Please, Mark as Answer if this reply helped you.
Steven Cheng...
Contributor
4219 Points
548 Posts
Microsoft
Moderator
Re: Post data to server using c# asp.net
Apr 12, 2012 09:17 AM|LINK
Hi sudhir123,
If what you want is sending some data via HTTP POST in your ASP.NET page's code-behind code, then you can use the WebRequest component suggested by subhash.shel.
Here are some other web references about using WebRequest component for HTTP request/response processing:
#How to use HttpWebRequest and HttpWebResponse in .NET
http://www.codeproject.com/Articles/6554/How-to-use-HttpWebRequest-and-HttpWebResponse-in-N
#Posting form data to remote website using HttpWebRequest.
http://www.jigar.net/howdoi/viewhtmlcontent106.aspx
#How to use HttpWebRequest to send POST request to another web server?
http://www.netomatix.com/HttpPostData.aspx
Feedback to us
Microsoft One Code Framework