开发者

Post method data in Page_load

开发者 https://www.devze.com 2023-03-27 14:25 出处:网络
I am building a web service in C# and i need to send the data in post method and not in the url. until now i get the data from a url :

I am building a web service in C# and i need to send the data in post method and not in the url.

until now i get the data from a url :

protected void Page_Load(object send开发者_StackOverflow社区er, EventArgs e)
{
}

from the sender,and no i want to get the data in post.


In order to access the data in POST, just do:

Request.Params["data_key"]

I'd advise you to put a break point on Page_Load and examine the contents of the Request.Params object and you'll figure it out.

0

精彩评论

暂无评论...
验证码 换一张
取 消