开发者

how can I use a Request.Form() on a windows application?

开发者 https://www.devze.com 2023-03-24 00:33 出处:网络
I have written a HTTP server in VB.NET but I don\'t know how to use the Request.Form() method on a windows application. I need it to read HTML data sent开发者_StackOverflow中文版 in a HTML form. Pleas

I have written a HTTP server in VB.NET but I don't know how to use the Request.Form() method on a windows application. I need it to read HTML data sent开发者_StackOverflow中文版 in a HTML form. Please help me.


Assuming you have valid HttpContext, just add reference to System.Web assembly in your project, then have such code:

Dim value As String = System.Web.HttpContext.Current.Request.Form("mykey")
0

精彩评论

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

关注公众号