We continue ". NET implementation (WebBrowser data collection) "series of the last article, this article I intend to explain how to use the WebBrowser control to achieve" virtual "interactive programs; for example, if we use Winform as the host container and Asp.net as the collection program page, we need to fill in related data items through the client, collect data through Asp.net, and transmit it to the server for query, then, it is displayed to the user. This operation requires the user interface. See the figure below:
1:
This is the server-side aspx page, which queries the relevant information based on the region name, and our region name needs to be filled in the client program; if it is a simple entry, there is no need to write this article. What we need is a friendly user experience, there may be tens of thousands of region names stored in the client database, and we cannot allow users to remember them. Besides, there may be Chinese differences in Region names;
2:
This is a WebBrowser control. We use this form to carry it;
3:
Another form is designed as a borderless window, which will be used later to show the data to be filled in. The following shows the powerful and incomparable advantages of the WebBrowser control;
4:
No one can say that this is a good user experience;. netWebBrowser is probably all over;