locked
Disable default of AutoEventWireup="false" and title="Untitled Page" RRS feed

  • Question

  • User294545519 posted

    Hi,

    Whenever I create a new aspx item in my project on Visual Studio 2005 using a master page, the following to attributes are added to the first line of code in my file:

     AutoEventWireup="false"
    title="Untitled Page"

     Is there a way I can set it so these aren't added as I always have to delete them each time a file is created.

    Cheers,
    Curt.
     

    Tuesday, April 15, 2008 5:09 AM

Answers

  • User371668647 posted

    You have to dig down into the VS folders and you should be able to find the templates used for the creation of each type.  There, you can change the template to match whatever defaults you'd like.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 15, 2008 11:05 AM

All replies

  • User371668647 posted

    You have to dig down into the VS folders and you should be able to find the templates used for the creation of each type.  There, you can change the template to match whatever defaults you'd like.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 15, 2008 11:05 AM
  • User1277271620 posted

    Visual Studio 9

    C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\Web\1033

    Visual Studio 8

    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033

    Wednesday, May 14, 2008 3:38 PM