Article ID: 311294 - Last Review: May 21, 2007 - Revision: 4.3 How to host a WebBrowser control in Visual Basic .NET to post form dataThis article was previously published under Q311294
For a Microsoft Visual C# .NET version of this article, see 313068
(http://support.microsoft.com/kb/313068/
)
.
For a Microsoft Visual Basic 6.0 version of this article, see 256195
(http://support.microsoft.com/kb/256195/
)
.
On This PageSUMMARY This article discusses how to use the WebBrowser ActiveX
control in Microsoft Visual Basic .NET to post form data. In Visual Basic .NET, you can
use the POST method with the WebBrowser ActiveX control to send data to an HTTP
server such as Microsoft Internet Information Server (IIS). To post data, you can use the Navigate method or the Navigate2 method of the WebBrowser ActiveX control. In these methods, only the URL parameter, the PostData parameter, and the Headers parameter are relevant. To call the Navigate method to post form data to an HTTP server, make sure that the parameters include the following information:
Create an .aspx page
Create the Visual Basic .NET sample projectTo demonstrate a POST transaction in Visual Basic .NET, follow these steps:
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
174923
(http://support.microsoft.com/kb/174923/
)
How to use the PostData parameter in WebBrowser control
For more information about other parameters of the Navigate2 method, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn.microsoft.com/en-us/library/aa752094(VS.85).aspx
(http://msdn.microsoft.com/en-us/library/aa752094(VS.85).aspx)
For more information about the WebBrowser ActiveX control, and about the
methods, the properties, and the events that the WebBrowser ActiveX control exposes,
visit the following MSDN Web site: http://msdn2.microsoft.com/en-us/library/Aa752043.aspx
(http://msdn2.microsoft.com/en-us/library/Aa752043.aspx)
For more information about the HTML specification for form
content types, visit the following World Wide Web Consortium (W3C) Web site:
http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1
(http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1)
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web site:
| Article Translations
|
Back to the top
