Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
МУ для ПИб 2015.doc
Скачиваний:
1
Добавлен:
01.07.2025
Размер:
2.11 Mб
Скачать

1. Read and translate the text. Understanding internet basics

You can program for the Web, using your skills as a Visual Basic programmer, no matter what your level of experience with Internet technology. If you are new to the Internet or unfamiliar with its technology, Visual Basic allows you to quickly and easily produce functional applications. If you are more experienced with Internet technology, you can work at a more advanced level.

From one perspective, Internet technology simply provides another area for your development efforts. When you deploy Internet applications on the Web, you may go about it differently – incorporating HTML pages with your Visual Basic code, providing security features, and so on – but you're still calling methods, setting properties, and handling events. In this way, all of your knowledge as a Visual Basic developer can be carried into the Internet arena.

From another perspective, applying Internet technology enables you to extend your development skills in exciting new ways. For example, writing Visual Basic code that manipulates HTML pages allows you to decrease deployment costs, reduce client maintenance problems, and reach the broad audience of the Internet.

Internet Clients and Servers

A common way to think about Internet development is in terms of client / server relationships. In this case, the client is the browser, and the server is the Web server. Most interactions on the Internet or an intranet can be thought of in terms of requests and responses. The browser makes a request to the Web server (usually to display a page the user wants to see) and the Web server returns a response (usually an HTML page, an element, or an image) to the browser.

Internet vs. Intranet

The Internet encompasses two categories: the Internet and the intranet. The Internet is a global, distributed network of computers operating on a protocol called TCP/IP. An intranet is also a network of computers operating on the TCP/IP protocol, but it is not global. Generally, intranets are restricted to a particular set of users and are not accessible by the outside world. For example, many corporations use a corporate intranet to provide information to their employees, and run another Internet site for external users. Users within the company can access both the intranet sites and the Internet, but users outside the company can access only the company's Internet sites.

Advantages of Visual Basic Internet Applications

There are many ways to develop applications for the Internet. Prior to Visual Basic 6.0, developers relied on CGI programs, on ActiveX functionality, or on Active Server Pages to create dynamic, interactive Internet applications. Internet application development in Visual Basic offers several key advantages over those approaches:

  • You can greatly reduce the cost of deployment per user. End users of an IIS Internet application can run the application using only a browser; no special software aside from the appropriate browser needs to be installed on their computers. End users of a DHTML Internet application need only the appropriate browser and the Visual Basic run-time on their computers. These necessary pieces are installed automatically.

  • You can leverage your knowledge of Visual Basic and use the Visual Basic programming environment. You do not have to learn scripting or manipulate HTML tags to develop a highly functional Web-based application.

  • You can separate designing the user interface from writing the code for a form or page. In previous Web-based applications, developers had to insert their script directly into an HTML document that was also used to generate the user interface. The end result was code that could be difficult to read and maintain.

  • In IIS applications, you can reuse pages in different contexts. Unlike HTML, where information to move from page to page must be embedded in the HTML itself, navigation information for a page in a Visual Basic Internet application is stored separately from the page itself. This allows you to reuse the page in several places in your application, changing the navigation each time depending on the context.

  • You can lessen download time and therefore reduce your network load, because the system does not need to download large components to run the application.

  • You can easily maintain application state, such as the user's name or account number, between client requests. Depending on the type of application, you can manage state on the client, the server, or both.

  • You can debug your IIS and DHTML applications using Visual Basic's standard debugging tools. Script and CGI-based Internet applications, on the other hand, can be very difficult to debug