Creation of Default .cs page

I just want to know that , how to create the .cs page(not blank) which should contains some default things using C# code?

Thing is that i cant even add as reference also because the file name should fetch from the textbox and then creat the page.

Please suggest me some idea to do this…

Thanks a lot,
Anjali:be:

thanks for sharing dude!______________________________Your forever friend gets you through the hard times,the sad lotro gold times,and the confused times.