SharePoint / ASP.Net Development
Experiences from the field...
Navigation
   RSS 2.0
Categories
Entries by Month

# Friday, March 07, 2003
If you are working in a web project in Visual Studio.Net, the Add New Item dialog does not include an ASP file type. However, VS.Net does understand the file type. Click on the File | New menu, then choose the Script category. Active Server Page is the first template listed. With help from an article by Chris Sells, I created the procedure to make the ASP template available to Blank and Empty Web Solutions. These procedures assume that you installed VS.Net to the default location of C:\Program Files\Microsoft Visual Studio .NET\. If you didn't, then adjust the paths accordingly. All of the files mentioned are plain text. Make backup copies first!
  • Blank Solution
    1.) Copy the file asppage.asp from [InstallDir]\Common7\IDE\NewScriptItems to [InstallDir]\Common7\IDE\NewFileItems.
    2.) Open [InstallDir]\Common7\IDE\NewScriptItems\NewScriptItems.vsdir.
    3.) Select the line containing asppage.asp
    4.) Paste the line into file [InstallDir]\Common7\IDE\NewScriptItems\NewFileItems.vsdir
  • Empty Web Solution
    1.) Create a file name ActiveServerPage.vsz in [InstallDir]\Vb7\VBProjectItems
    2.) Enter the following:
          VSWIZARD 6.0
          Wizard=VsWizard.VsWizardEngine
          Param="WIZARD_NAME = ActiveServerPage"
          Param="WIZARD_UI = FALSE"
          Param="PROJECT_TYPE = VBPROJ"

    3.) Open the file [InstallDir]\Vb7\VBProjectItems\Web Project Items\WebProjectItems.vsdir
    4.) Add the following line. (Refer to the VS.Net documentation about VSDir files for an explanation of the values.)
          ..\ActiveServerPage.vsz|{164B10B9-B200-11D0-8C61-00A0C91E29D5}|ASP Page|1|Active Server Page|{164B10B9-B200-11D0-8C61-00A0C91E29D5}|4520| |ASPPage.asp
    5.) Open the file [InstallDir]\Vb7\VBProjectItems\Web Project Items\Web\WebWebProjectItems.vsdir
    6.) Add the following line. (Refer to the VS.Net documentation about VSDir files for an explanation of the values.)
          ..\..\ActiveServerPage.vsz|{164B10B9-B200-11D0-8C61-00A0C91E29D5}|ASP Page|1|Active Server Page|{164B10B9-B200-11D0-8C61-00A0C91E29D5}|4520| |ASPPage.asp
  • Friday, March 07, 2003 6:03:55 AM (Central Standard Time, UTC-06:00)  #    Comments [0]  | 
    Search

    Further Reading...

    Powered by: newtelligence dasBlog 2.2.8279.16125

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008, Paul Schaeflein

    Send mail to the author(s) E-mail