e.InnerHTML is throwing exception

Asked by Qasim
12 years ago.

HI,

we are getting following exception

Exception information: Exception type: HttpRequestValidationException

Exception message: A potentially dangerous Request.Form value was detected from the client (M_CM_m1_SchedulerControl_state="...nerHTML":"<a title=\"&quot;Hal...").

When

we want to do

e.InnerHTML = string.Concat( "<a title=\"", title, "\" href=\"", href, "\">", e.InnerHTML, "</a>" );

I have tried to do the following
e.InnerHTML = "Some Text" and this works but

throws exception when we have html tags or say some link inside.

Please reply at your earliest.

No reply yet.

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.