J
John Saunders
I can create a reproducer for this later, if needed, but I'm too aggravated
at the moment.
I have a control whose GetDesignTimeHtml method pretty much just calls
base.GetDesignTimeHtml(). ControlDesigner.GetDesignTimeHtml of course, calls
((Control) component).Render(htmlStringWriter) and then returns the string.
Recently, the Render method of this control gained some code which throws an
exception. Apparently, ControlDesigner.GetDesignTimeHtml catches this
exception - and takes it as an excuse to call this.GetEmptyDesignTimeHtml().
I've got a try-catch block around my call to base.GetDesignTimeHtml, so if
ControlDesigner.GetDesignTimeHtml had even failed to handle the exception,
I'd have picked it up and displayed something useful. Instead, I got a
useless placeholder saying "Please set some parameters". It continues saying
"Please set some parameters" even after I set the parameters, which is quite
frustrating.
Could this be fixed, if it's a bug, or documented, if it's a feature, or
explained, if I missed something?
Thanks,
John Saunders
Internet Engineer
(e-mail address removed)
at the moment.
I have a control whose GetDesignTimeHtml method pretty much just calls
base.GetDesignTimeHtml(). ControlDesigner.GetDesignTimeHtml of course, calls
((Control) component).Render(htmlStringWriter) and then returns the string.
Recently, the Render method of this control gained some code which throws an
exception. Apparently, ControlDesigner.GetDesignTimeHtml catches this
exception - and takes it as an excuse to call this.GetEmptyDesignTimeHtml().
I've got a try-catch block around my call to base.GetDesignTimeHtml, so if
ControlDesigner.GetDesignTimeHtml had even failed to handle the exception,
I'd have picked it up and displayed something useful. Instead, I got a
useless placeholder saying "Please set some parameters". It continues saying
"Please set some parameters" even after I set the parameters, which is quite
frustrating.
Could this be fixed, if it's a bug, or documented, if it's a feature, or
explained, if I missed something?
Thanks,
John Saunders
Internet Engineer
(e-mail address removed)