function OpenWin(url, w, h) { if(!w) w = 400; if(!h) h = 300; window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true); } function Print() { window.focus(); if(window.print) { window.print(); window.setTimeout('window.close();',5000); } }
| Team-Fly | |
| Special Edition Using Microsoft® Visual Basic® .NET By Brian Siler, Jeff Spotts
| Table of Contents | | Part IV: Working with the Web |
In this chapter Understanding the Web Forms Programming Model Writing Code Behind a Web Form Managing Your Web Application Project Sharing Functionality with Web Services From Here. . . In this chapter, we'll explore two new types of Web projects available in Visual Basic .NET: Web Applications and Web Services. Both types of projects are built on ASP.NET and contain code that executes on a Web server. ASP.NET Web Applications include a new programming model called Web Forms, which promises to make Web development much easier for the developer. Web Services, on the other hand, do not have a user interface, but can be used to expose business functionality to other programs and users via the Internet. Technically speaking, an ASP.NET Web Application is just a collection of related files in a virtual directory. These files can be coded "by hand" using a text editor, or created in the Visual Studio development environment. Either way, when you create a Web page using ASP.NET you can use a powerful new programming model available, known as Web Forms. In this chapter, we will examine how Web Forms work, discuss some common coding techniques, and finally examine some issues involved with managing a Web Application project in Visual Studio .NET. |
| Team-Fly | |
|
| |
|