how to create and work with tempaltes in C#.NET?

kindly explain step by step