开发者

Post method data in Page_load

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜