473,698 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A potentially dangerous Request.Form

Hi All,

I read the KB821343 article on this subject and I am still a bit confused
about a couple of things:

1) Am I to understand that if I install .NET frame work 1.1 on the computer
generating the application this problem will be resolved?

2) How can I find out what the offending code is doing? I really do not want
to disable Request Validation, I would rather find the problem and HTML
encode myself.

I appreciate your help.

Alex
Nov 18 '05 #1
2 1454
Hi me again,

Regarding point 2) in my original post I was able to determine the root
cause of the problem:

<select name="ddlForms" onchange="__doP ostBack('ddlFor ms','')"
language="javas cript" id="ddlForms" style="Z-INDEX: 118; LEFT:
700px;POSITION: absolute; TOP: 0px">
<option value="<FORMS>" >&lt;FORMS&gt ;</option>
<option value="Vacation Request">Vacati on Request</option>
<option value="Internal Job Application">In ternal Job
Application</option></select>

The problem is in the line: <option value="<FORMS>" >&lt;FORMS&gt ;</option>
Apparently "<FORMS>" is the culprit

Can anyone suggest how to fix the code?

Thanks,
Alex
"Alex Munk" <am***@hotmail. com> wrote in message
news:4r******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
Hi All,

I read the KB821343 article on this subject and I am still a bit confused
about a couple of things:

1) Am I to understand that if I install .NET frame work 1.1 on the computer generating the application this problem will be resolved?

2) How can I find out what the offending code is doing? I really do not want to disable Request Validation, I would rather find the problem and HTML
encode myself.

I appreciate your help.

Alex

Nov 18 '05 #2
http://www.tconsult.com/aspnet/secur...tially_dangero
us.aspx

try that...

-----Original Message-----
Hi me again,

Regarding point 2) in my original post I was able to determine the rootcause of the problem:

<select name="ddlForms" onchange="__doP ostBack ('ddlForms','') "language="java script" id="ddlForms" style="Z-INDEX: 118; LEFT:700px;POSITION : absolute; TOP: 0px">
<option value="<FORMS>" ><FORMS></option>
<option value="Vacation Request">Vacati on Request</option> <option value="Internal Job Application">In ternal JobApplication</option></select>

The problem is in the line: <option value="<FORMS>" ><FORMS></option>Apparently "<FORMS>" is the culprit

Can anyone suggest how to fix the code?

Thanks,
Alex
"Alex Munk" <am***@hotmail. com> wrote in message
news:4rFDb.484 20 $e********@news 01.bloor.is.net .cable.rogers.c om...
Hi All,

I read the KB821343 article on this subject and I am still a bit confused about a couple of things:

1) Am I to understand that if I install .NET frame work 1.1 on thecomputer
generating the application this problem will be
resolved?
2) How can I find out what the offending code is doing? I really do notwant
to disable Request Validation, I would rather find the

problem and HTML encode myself.

I appreciate your help.

Alex

.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1421
by: Anil Kripalani | last post by:
When a user of our ASP.NET 1.1 application submits a form with the phrase 'manuscript:' in a text field, ASP returns the error 'A potentially dangerous Request.Form value was detected from the client (182:BodyField="manuscript: hello").' Why is this seemingly innocent text triggering this error? Thanks, Krip
1
5872
by: John Morgan | last post by:
I am attempting to use a try/catch block to trap a querystring which is caught by ValidateRequest="true" in the @page directive A simple example of the blockthat does not work is Try routeID = Request.QueryString("routeID") Catch response.Write("a dangerous query string has been entered") End Try
1
5425
by: angus | last post by:
Dear All, how to try-catch "A potentially dangerous Request.Form value was detected from the client (txtUserName="<asdf")." this exception? i've set the debugger in the Page_InIt function, but this page is shown before the Page_init function. i know that i can set validateRequest="false" in my page, but how can i
6
1777
by: STech | last post by:
If data you post back contains the following string on<<any sequence of characters>>= example: on2q3asdf= The page will throw the following exception: A potentially dangerous Request.Form value was detected from the client
1
2609
by: veenakj | last post by:
Hi Code snippet -------------- strErrMsg = "Could not find a part of the path \"C:\\Temp\\data\\Test.xml\"." } Server.Transfer("Message.aspx?errormsg=" + Server.UrlEncode(lsErrMsg)); ---------------
1
3909
by: Sergey Zuyev | last post by:
Hello all I have simple edit form. When user saves data that contains restricted characters such as (< , etc.) , regular expression validator will display a warning message. It all works fine, but if users decides to exit the form using Cancel button then error occurs: A potentially dangerous Request.Form value was detected from the client. The Cancel button has CausesValidation set to false. Is there any way to avoid this error...
2
1756
by: arun | last post by:
Hi I want to store the text from a TextBox that contains <br, *, $ etc.to sql server. But it shows me an error message "A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$Comments="...rts from: <br>14:15 Bus Stop 1..."). " If the text does not contain these special characters it gets inserted with out any problem.
1
1788
by: djmc | last post by:
Using the asp.net button control (and I assume others), I place the phrase "Don't Save" in the .Text field. The button displays without any problems, but upon postback, the server responds with "A potentially dangerous Request.Form value was detected". I've determined this problem is due to the single quote in the string. My main problem occurs when trying to localize our application. In many foreign languages, the apostrophe is used...
2
4181
by: Steve Richter | last post by:
getting this "potentially dangerous Request.Form value was detected" exception with a textbox which I have populated with some source code. I think I am getting the exception when I click OK on the web page, but that is one of my question, so I am not sure ;) I am reading how to disable request validation, http://www.asp.net/faq/RequestValidation.aspx#5 but I dont want to do that. I would rather catch the exception. But I guess that...
0
8668
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9014
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8855
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7708
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.