posts - 218, comments - 222, trackbacks - 68

My Links

News




I am a Microsoft Certified Application Developer MCAD Chartered Member (C# .Net) and born in Bangladesh.
I work for Ocean Informatics Pty Ltd as a Senior Developer - Analyst.
I am also co-founder and core developer of Pageflakes (acquired by LiveUniverse) www.pageflakes.com
and most recently created SmartCodeGenerator

My Articles
Flexible and Plugin based .Net Application..
Mass Emailing Functionality with C#, .NET 2.0, and Microsoft® SQL Server 2005 Service Broker'
Write your own Code Generator or Template Engine in .NET
Smart Code Generator .NET: Usage Overview
Smart Code Generator .NET: Architectural Overview
Smart Code Generator .NET: using with NAnt and Cassini

Archives

Free Programming Language Training

Visual Studio 2005 File > Export Template

Custom templates are sometimes very handy. For example if your pages are inherited from a custom base page. Normally you would have to tweak your pages to fit your framework. Sometimes its even boaring to go and change the new pages added to the project again and again.

Say your framework require all pages to inherit from <YourProject.BaseClassName>. Then you have to change the codebehind of the new pages that you add to your project to something like this

public partial class _Default1 : YourProject.BaseClassName

Good News is You can turn a page that you are happy with in to custom templates and then create the new page from the template. This infact saves a lot of time as you do not need to go on each page and do the boaring tweaking.

Any items of your project or the even the whole project can be templated.

The File>Export Template will do the trick. For details steps please refer to This Blog Post done by Scott

Remember the only changes that you would require to make in your Project / Project Item is to put the following parameters as required.

  • $safeprojectname$

  • $safeclassname$

  • $guid1$

  • $guid5$

For a full list of parameters and some example of using them please refer to this link at msdn.

Print | posted on Sunday, November 19, 2006 11:57 AM |

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 3 and type the answer here:

Powered by: