From Here

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
Chapter 17.  Using Active Server Pages.NET


From Here…

As you can see from the example, with just four ASP.NET files you can create a very functional Web site. If you are interested in working more with a photo-sharing site, consider the following enhancement suggestions:

  • The sample application accepts any type of file. However, in the real world you may want to place restrictions on the file type, file size, or number of images uploaded.

  • Improve the thumbnail code to take into account the proportions and size of the original image.

  • Make the photo pages database-driven, using an identity column for the server filename. This will have pictures in multiple categories, as well as make it easy to store comments and annotations.


    Team-Fly    
    Top
     



    Special Edition Using Visual Basic. NET
    Special Edition Using Visual Basic.NET
    ISBN: 078972572X
    EAN: 2147483647
    Year: 2001
    Pages: 198

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net