I need to show some html code in TextBox.
this is my TextBox description:
<asp:TextBox ID="responseTextBox" runat="server"
Width="910px" ReadOnly="True" TextMode="MultiLine" CausesValidation="false" />
i am passing the html to it programatically, and it works, but on postback from page i’am getting the following error:
A potentially dangerous Request.Form value was detected from the client (ctl00$MainContent$responseTextBox=” …
How can i disable input validation ?
asp.net imposes this checking to avoid script injections.But you can override this by changing the validateRequest property value to “false” in page directive
Check here to know more about Script injection