Author: stapes | Posted on: 9/22/2008 9:46:35 AM | Views : 272

Is there an 'Include' statement for ASP.NET C# for including common bits of code. I would use this where code is common but it needs to be part of a page to work, such as session variables and Page.Controls, such as my routines for displaying exception information.i.e: private void MessageBox(string strMsg) { Page.Controls.Add(new LiteralControl("
window.alert('" + strMsg + "')
")); } Stapes
...

Go to the complete details ...