|
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.Design;
namespace David.Nelson.UI.Web
{
public class GenericControlDesigner : ControlDesigner
{
public GenericControlDesigner()
: base()
{
}
protected override string GetErrorDesignTimeHtml(Exception e)
{
// Write the error message text in red, bold.
string errorRendering =
"<span style=\"font-weight:bold; color:Red; \">hello" +
e.Message + "<br>" + e.StackTrace + "</span>";
return CreatePlaceHolderDesignTimeHtml(errorRendering);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have been doing web development for about 11 years. I specialize in Dynamic HTML, C#, and SQL database design.