A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
A potentially dangerous Request.Form value was detected from the client |
On Saturday, June 3rd 2006 at 01:40 PM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 3.5 with 10 votes) |
||
|
If you are receiving the A potentially dangerous Request.Form value was detected from the client error while a PostBack occurs (submitting a form, for instance) it is most likely because in the PostBack content, there are HTML or HTML-like tags. This is ASP.NET's defense mechanism that prevents the users of a website to try and inject code into forms, as a way to hack into the websites. To fix this, you can set the validateRequest attribute to false, either for the entire ASP.NET web application, or just for one page. To disable validateRequest for a single page, go to that page's Page attribute (located at the top of the markup), and set validateRequest to false, as you can see at the end of the example below: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SamplePage.aspx.cs" MasterPageFile="DefaultLayout.master" Inherits="Admin_SamplePage" ValidateRequest="false" %> If you prefer to set this value for all the pages in your ASP.NET web application, open (or create) the web.config file and add the <pages validateRequest="false" /> tag inside the system.web tag, as shown in the example below: <configuration> <system.web> <pages validateRequest="false" /> </system.web> </configuration> |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current Commentsd
<bold> hai </bold>
<table id ="123" border ="2">
<tr>
<td> hello</td>
<td> programmers </td>
</tr>
</table>
<pre>
O....
) )
( )
</pre>
<scrtip>
<script>alert(\\\"hello\\\")</script>
<b>dafa</b>
Nice article
thanks fo your approval
goodbye
that\'s nice ... and i think most of us know that .. but i want a way to go around ValidateRequest from my page ... from the html page .. not from the asp page ..
This is not a security way. Plz gve some useful ideas...THKS...........
thanks, this is what i was searching for long time.
You're kidding, right? What a terrible answer. Use a regex validator to validate the textbox against a regular expression of available values - for instance, a description textbox - slap a regex in the validator and it'll check on postback.
Thanks to all they help me to solve my ERROR.
Thank
Vinay Mistry
thanks
please send me free mobile phones. thanks.
please send me webcam
<script type="javascript">alert('Definitely a problem!');</script>
<script language="javascript">
alert('hi');
</script>
to camisco p.o. box 131 ashaiman ghana w/a thanks..............
<SCRIPT>alert(\"hello from script\")</SCRIPT>
'or 1 select * from user
<script type="javascript">alert('Definitely a problem!');</script>
<script type="javascript">alert('Definitely a problem!');</script>
jajajaj
<\br>
<><>><><
<script type="javascript">alert('Definitely a problem!');</script>
<script type="javascript">alert('Definitely a problem!');</script>
<script type="javascript">alert('Definitely a problem!');</script>
sdfdsfsd
sdfdsfsd
sdfdsfsd
<script type="javascript">alert('Definitely a problem!');</script>
presby primary
ashaiman
p.o.box103
w/a
00233
ghana
thanks
presby primary
ashaiman
p.o.box103
w/a
00233
ghana
thanks
presby primary
ashaiman
p.o.box103
w/a
00233
ghana
thanks
presby primary
ashaiman
p.o.box103
w/a
00233
ghana
thanks
presby primary
ashaiman
p.o.box103
w/a
00233
ghana
thanks
presby primary
ashaiman
p.o.box103
w/a
00233
ghana
thanks
adfhdf><b>
<script>alert(\\\"hello\\\")</script>
<script type="javascript">alert('Definitely a problem!');</script>
<script type="javascript">alert('Definitely a problem!');</script>
<Script>alert("I tried in both, web config and at page level but nothing happen good \r\n I am still facing this problem. I have master page in my website")</Script>
<script>alert(\\\"hello\\\")</script>
these are the sorriest attempts at XSS and SQL Injection i've ever seen.
<Script>alert("I tried in both, web config and at page level but nothing happen good \r\n I am still facing this problem. I have master page in my website")</Script>
You need to do couple of modification to you application to get this fixed.Have a look.
http://www.a2zmenu.com/AspNet/A-potentially-dangerous-Request-Form-value-was-detected.aspx
Thx Yaar
Dear
sir free msdn visual stidio my email Id send and please give me the like to download MSDN Visual studio 6,......................
<script type="javascript">alert('Definitely a problem!');</script>
Related Knowledge Base Articles
Related Source Code
Related Tutorials
ASP.NET Job SearchFrom the creators of Geekpedia, a revolutionary new coupon website!
BargainEZ has coupons codes, printable coupons, bargains and it is the leading source of Passbook coupons for iPhone and iPod touch devices.