Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello . . .
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

After enter the above formatted html data in Rich Textbox and I tried to insert data then I got error message like

A potentially dangerous Request.Form value was detected from the client (remarks =”<html></html>”)

so i try to solve it by adding this:
C#
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %>

and also this
HTML
<system.web>
………………………
<pages validateRequest="false">
</pages>
………………………
</system.web>

after that i try to insert html tag it work fine in localhost but when i test it online than it not work for me..

please help . . .
Posted
Updated 26-May-13 22:55pm
v3

1 solution

This[^] may help you.
 
Share this answer
 
Comments
[no name] 27-May-13 4:46am    
it is for ASP.NET 4.0 but i use ASP.NET 3.0 .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900