Tuesday, March 10, 2009

DotNet Web Info

1. Install Templates in Visual studio 2005 or 2009

copy the zip (for e.g Login.zip) file to the

D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\Web\CSharp\1033
[if the project type is web and language is c#]

D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\Web\VisualBasic\1033
[if the project type is web and language is VB]

2. close all the instances of VS 2005 or 2008
3. type the command devenv /installvstemplates in the run command
4. Wait for auto close of the devenv.exe in process windows task manager
5. Invoke the VS 2008 and the see your template in the my templates


1. DateTime Format

DateTime t1 = DateTime.Today;
MessageBox.Show(String.Format("{0:dd}", t) + " th" + String.Format("{0:MMM}", t) + ", " + String.Format("{0:yyyy}", t));
MessageBox.Show(String.Format("{0:MM/dd/yyyy}", t1));

No comments: