Geeks With Blogs

News Ashraful Alam Joy

Create Your Badge

Ashraful Alam is a Software Architect, who has 8 years of professional experience in Software Development industry. This Bangladeshi national is involved with project management and development of several US based software projects from his country. Already he has managed and developed several software projects, which are being used by several users of different countries, such as USA, Canada, Australia, and Bangladesh. While developing and managing a team, he contains and maintains a set of well defined engineering practices developed by him and other online developer communities.

Due to his willingness to give effort to improve and share better software development practices, Ashraf has been awarded as “Most Valuable Professional” (MVP) in ASP.NET category by Microsoft since year 2007 multiple times, which is a rare honor and prestigious reorganization among the developers around the world.

Check his portfolio to know more about him and his works.


.NETTER Characters... Every part of your life is best, if you can know yourself and thus create your life like an artist!

* Template and out-put view:

Use F5 and F7 so run & see out put and to switch to the code view.

* Reusing templates:

In the master page, register as:

<%@ Register Name="SubTemplate" Template="SubTemplate.cst" %>

and render the sub-template content in the master template as

<% new SubTemplate().Render(this.Response); %>

* Code behind page:

In the template page, use the following line to consider the code-behind page

<%@ CodeTemplate Src="CodeBehind.cst.cs" Inherits="SampleCodeBehindClass" Language="C#" TargetLanguage="C#" Description="Demonstrates the most basic template." %>

In the code behind page, consider the code behind class, as follows:

using System.ComponentModel;
using CodeSmith.Engine;

public class SampleCodeBehindClass : CodeTemplate
{
...
Posted on Thursday, November 9, 2006 4:50 PM Implementation , Architecture , .NET , Software Development | Back to top



Comments on this post: CodeSmith Tips: Part 2

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Ashraf Alam | Powered by: GeeksWithBlogs.net