Example1 Makes you familiar with SmartCodeGenerator.
Generating code from existing project/template.
Step1 Opening Existing Template
Open Example1 from Example_Projects folder, as a website project in Visual Studio 2005.

Step2 Launching the Generator
Run the project you have opened from Visual Studio 2005 and this will display the default.aspx page.
Notice the property1 and the textbox to enter value. The properties lets you customize the generated code. Here we are collecting value for property1 and this can be used in the generated template.
Step3 Generating the Text or Code
Simply click the Generate Button. And this will generate code for you. If there was any compilation error VS2005 would have picked that up very easily as it normally does for your asp.net application.
Step5. Reviewing the Template
Expand the Template Folder and open Exampl11Template.ascx file and go to source view. This would look like the following.
And the Code behind is where I have declared a property CurrentDateTime.
And the Generated Code should look like this. The DateTime.Now.ToString() is simply replaced by the current datetime.
And remember you have full support of the Greatest Visual Studio 2005 Environment [Debugging, Compilation, CodeSnippet and countless etc.]