Hello Mark,
I am glad you have found the right info already. Just a supplement that we could also add files to in this folder to add
template for ourselves.
Thanks very much for participating the community.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "Mark Fox" <
[email protected]>
!Sender: "Mark Fox" <
[email protected]>
!References: <
[email protected]> <
[email protected]>
<
[email protected]> <
[email protected]> <5c6101c35779
[email protected]>
!Subject: Re: Changing VS.NET defaults
!Date: Thu, 31 Jul 2003 08:45:17 -0700
!Lines: 91
!Message-ID: <
[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNXer16fxcY0K+URpir+JQ/7ZuU5g==
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163815
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Nevermind. I found the template I have to change. It's
!in
!
!C:\Program Files\Microsoft Visual
!Studio .NET\VC#\DesignerTemplates\1033
!
!You could change any of the default templates there.
!
!The VB templates are in
!
!C:\Program Files\Microsoft Visual Studio .NET\Vb7
!\DesignerTemplates
!
!
!>-----Original Message-----
!>Mark,
!>
!> I added System.Data.SqlClient to the references
!>path, but when I went and added a new web form to the
!>project it didn't automatically add it to the using
!>section at the top. Is there a template file somewhere
!>(the analogy to Normal.dot for Word) that I should
!modify
!>to change the default template for new web form files?
!>Thanks for your help?
!>
!>>-----Original Message-----
!>>Never mind. This option is only available for VB
!>projects. In C#, it is on
!>>the same dialog, on the left side, select the "Common
!>Properties" folder,
!>>and then select "References Path".
!>>
!>>I'm using VS 2002
!>>
!>>!>>> What version of VS are you using?
!>>>
!>>>
!>>> I can not find this tab in my VS 2003. Version
!7.1.3088
!>>>
!>>> Thanks,
!>>> George.
!>>>
!>>>
!>>> !>>> > Right click on the project in "Solution Explorer".
!>Select Properties.
!>>> Then
!>>> > go to the "Imports" tab, and add
!>system.data.sqlclient.
!>>> >
!>>> > !>>> > > Hello,
!>>> > >
!>>> > > When you add a new web form in VS.NET it
!>>> > > automatically adds the following namespaces at
!the
!>top:
!>>> > >
!>>> > > using System;
!>>> > > using System.Collections;
!>>> > > using System.ComponentModel;
!>>> > > using System.Data;
!>>> > > using System.Drawing;
!>>> > > using System.Web;
!>>> > > using System.Web.SessionState;
!>>> > > using System.Web.UI;
!>>> > > using System.Web.UI.WebControls;
!>>> > > using System.Web.UI.HtmlControls;
!>>> > >
!>>> > > is there a way to make it so that VS.NET also
!>>> > > automatically includes
!>>> > >
!>>> > > using System.Data.SqlClient;
!>>> > >
!>>> > > ? Thanks!
!>>> >
!>>> >
!>>>
!>>>
!>>
!>>
!>>.
!>>
!>.
!>
!