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.
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 CurtWRC on Apr 15, 2008 04:26 PM
CurtWRC
Participant
1131 Points
1026 Posts
Disable default of AutoEventWireup="false" and title="Untitled Page"
Apr 15, 2008 09:09 AM|LINK
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.
stiletto
All-Star
16995 Points
3304 Posts
Re: Disable default of AutoEventWireup="false" and title="Untitled Page"
Apr 15, 2008 03:05 PM|LINK
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.
jberkhei
Member
7 Points
2 Posts
Re: Disable default of AutoEventWireup="false" and title="Untitled Page"
May 14, 2008 07:38 PM|LINK
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