search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

e.InnerHTML is throwing exception

Asked by Qasim
9 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.

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