In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how VB.NET implements Web app. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
You have the following options when creating a new VB.NET project:
Class library: a set of class libraries without GUI, similar to bean in Java. Some common modules are written to the class library, which is a good way to use them in a project. Can be used in windows app or VB.NET Web app or more projects. You only need to add the dll of the corresponding class library to the reference, and you can refer to it by referring to the name of the class. If there is a namespace in the class library, imports the namespace at the beginning. You can also use only the class name when calling.
Windows control library: a control built for windows app, with GUI. When in use, select add or remove items in the user control bar on the left toolbar. Select the dll of the control. At this point, the control is added to the panel and can be placed into the form like a normal control. When I use it, I also add the corresponding dll to the reference. Because even if you do the * step operation, you can only add controls, and when you define a control class, you cannot find the corresponding class.
Web control library: there are no tests, I think it's just a GUI control that can be used in Webapp. The method should be similar to that of the windows control
ASP.NET Web service: when you create a Webservice, you create a virtual directory in iis, just like VB.NET Web app. When the service is established, the reference is based on the newly created Web directory (http://localhost......) To make a reference to the The Web service file is a file that ends in .asmx and the code file is in .asmx.vb. It also operates like a class library, and the code is written in the class. The method to be published as Webservice is preceded by _ as follows:
_ Public Function HelloWorld () As String Return "HelloWorld" End Function
When browsing the http://localhost/WebService1/Service1.asmx, the list displays the published service. And have a more detailed explanation of the operation. The method of use is as follows:
Establish VB.NET Web app or windows app and so on. Add a Web reference to the reference. At this point, you can select a URL of Webservice to add the corresponding WebURL code, and you can reference Webservice in the way of reference name and class name. If the reference class named localhost Web service is service1, the reference method is
Dim aa As localhost.Service1 aa = New localhost.Service1 Thank you for your reading! This is the end of the article on "how to achieve Web app in VB.NET". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.