I'm developing a winforms application, in which I have a web browser control, where I have to open certain web page based on the menu item clicked. This is how I'm calling the web page in app
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
string postData = "username=xyz";
string header = "";
webBrowser.Navigate(url, "", encoding.GetBytes(postData), header);
How I can access postData values in the webpage?
如果位于url
的页面也是ASP.Net页面,则可以通过以下方式访问它:
String Username = Request.Form("Username");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.