473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem on display many XML files in web broswer IE

I use datagrid to store XML file information for selecting a XML from
database, and a textbox, txtXML, for displaying a selected XML.

When I dispaly a XML in the textbox at firstime, it OK. But when I select
another one to display, I got an error message and a security warning in the
following attached.
I think that the browser sends bacl the first dispalyed XML back to Server,
when I want the second one.

Anyone could tell me how to get rid of it. Thanks

David

.................................................. .....
Server Error in '/loadRetrieveFile' Application.
--------------------------------------------------------------------------------

A potentially dangerous Request.Form value was detected from the client
(txtXML="...f-8'?<!-- A SAMPLE set o...").
Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially
dangerous Request.Form value was detected from the client (txtXML="...f-8'?>
<!-- A SAMPLE set o...").

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below

Mar 21 '07 #1
6 2116
Set enableRequestValidation="false" in your page's @Page directive.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
I use datagrid to store XML file information for selecting a XML from
database, and a textbox, txtXML, for displaying a selected XML.

When I dispaly a XML in the textbox at firstime, it OK. But when I select
another one to display, I got an error message and a security warning in the
following attached.
I think that the browser sends bacl the first dispalyed XML back to Server,
when I want the second one.

Anyone could tell me how to get rid of it. Thanks

David

.................................................. ....
Server Error in '/loadRetrieveFile' Application.
--------------------------------------------------------------------------------

A potentially dangerous Request.Form value was detected from the client
(txtXML="...f-8'?<!-- A SAMPLE set o...").
Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially
dangerous Request.Form value was detected from the client (txtXML="...f-8'?>
<!-- A SAMPLE set o...").

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below
Mar 21 '07 #2
Thanks, I will try.

David

"Peter Bromberg [C# MVP]" wrote:
Set enableRequestValidation="false" in your page's @Page directive.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
I use datagrid to store XML file information for selecting a XML from
database, and a textbox, txtXML, for displaying a selected XML.

When I dispaly a XML in the textbox at firstime, it OK. But when I select
another one to display, I got an error message and a security warning in the
following attached.
I think that the browser sends bacl the first dispalyed XML back to Server,
when I want the second one.

Anyone could tell me how to get rid of it. Thanks

David

.................................................. ....
Server Error in '/loadRetrieveFile' Application.
--------------------------------------------------------------------------------

A potentially dangerous Request.Form value was detected from the client
(txtXML="...f-8'?<!-- A SAMPLE set o...").
Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially
dangerous Request.Form value was detected from the client (txtXML="...f-8'?>
<!-- A SAMPLE set o...").

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below
Mar 21 '07 #3
Can I set a similar thing in form level?

David

"Peter Bromberg [C# MVP]" wrote:
Set enableRequestValidation="false" in your page's @Page directive.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
I use datagrid to store XML file information for selecting a XML from
database, and a textbox, txtXML, for displaying a selected XML.

When I dispaly a XML in the textbox at firstime, it OK. But when I select
another one to display, I got an error message and a security warning in the
following attached.
I think that the browser sends bacl the first dispalyed XML back to Server,
when I want the second one.

Anyone could tell me how to get rid of it. Thanks

David

.................................................. ....
Server Error in '/loadRetrieveFile' Application.
--------------------------------------------------------------------------------

A potentially dangerous Request.Form value was detected from the client
(txtXML="...f-8'?<!-- A SAMPLE set o...").
Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially
dangerous Request.Form value was detected from the client (txtXML="...f-8'?>
<!-- A SAMPLE set o...").

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below
Mar 21 '07 #4
Its not supported!

error:
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The 'enableRequestValidation' attribute is not
supported by the 'page' directive.

Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="loadRetrieveFileCS.WebForm1"
enableRequestValidation="false"%>

"Peter Bromberg [C# MVP]" wrote:
Set enableRequestValidation="false" in your page's @Page directive.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
I use datagrid to store XML file information for selecting a XML from
database, and a textbox, txtXML, for displaying a selected XML.

When I dispaly a XML in the textbox at firstime, it OK. But when I select
another one to display, I got an error message and a security warning in the
following attached.
I think that the browser sends bacl the first dispalyed XML back to Server,
when I want the second one.

Anyone could tell me how to get rid of it. Thanks

David

.................................................. ....
Server Error in '/loadRetrieveFile' Application.
--------------------------------------------------------------------------------

A potentially dangerous Request.Form value was detected from the client
(txtXML="...f-8'?<!-- A SAMPLE set o...").
Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially
dangerous Request.Form value was detected from the client (txtXML="...f-8'?>
<!-- A SAMPLE set o...").

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below
Mar 21 '07 #5
Should be ValidateRequest="False"
Tahnks

"david" wrote:
Its not supported!

error:
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The 'enableRequestValidation' attribute is not
supported by the 'page' directive.

Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="loadRetrieveFileCS.WebForm1"
enableRequestValidation="false"%>

"Peter Bromberg [C# MVP]" wrote:
Set enableRequestValidation="false" in your page's @Page directive.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
I use datagrid to store XML file information for selecting a XML from
database, and a textbox, txtXML, for displaying a selected XML.
>
When I dispaly a XML in the textbox at firstime, it OK. But when I select
another one to display, I got an error message and a security warning in the
following attached.
I think that the browser sends bacl the first dispalyed XML back to Server,
when I want the second one.
>
Anyone could tell me how to get rid of it. Thanks
>
David
>
.................................................. ....
Server Error in '/loadRetrieveFile' Application.
--------------------------------------------------------------------------------
>
A potentially dangerous Request.Form value was detected from the client
(txtXML="...f-8'?<!-- A SAMPLE set o...").
Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.
>
Exception Details: System.Web.HttpRequestValidationException: A potentially
dangerous Request.Form value was detected from the client (txtXML="...f-8'?>
<!-- A SAMPLE set o...").
>
Source Error:
>
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below
>
Mar 21 '07 #6
You got it. I was thinking of the attribute for the pages element in the
web.config. Same thing.

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
Should be ValidateRequest="False"
Tahnks

"david" wrote:
Its not supported!

error:
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The 'enableRequestValidation' attribute is not
supported by the 'page' directive.

Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="loadRetrieveFileCS.WebForm1"
enableRequestValidation="false"%>

"Peter Bromberg [C# MVP]" wrote:
Set enableRequestValidation="false" in your page's @Page directive.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
>
>
>
>
"david" wrote:
>
I use datagrid to store XML file information for selecting a XML from
database, and a textbox, txtXML, for displaying a selected XML.

When I dispaly a XML in the textbox at firstime, it OK. But when I select
another one to display, I got an error message and a security warning in the
following attached.
I think that the browser sends bacl the first dispalyed XML back to Server,
when I want the second one.

Anyone could tell me how to get rid of it. Thanks

David

.................................................. ....
Server Error in '/loadRetrieveFile' Application.
--------------------------------------------------------------------------------

A potentially dangerous Request.Form value was detected from the client
(txtXML="...f-8'?<!-- A SAMPLE set o...").
Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially
dangerous Request.Form value was detected from the client (txtXML="...f-8'?>
<!-- A SAMPLE set o...").

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below
Mar 21 '07 #7

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

Similar topics

3
by: gnamja | last post by:
the address is http://sports.hankooki.com/comic/cartoon/cartoon_viewer/clview.php?type=55&uid=136&fname=20050907559159_1.jpg i can't view or down the 20050907559159_1.jpg image file through...
4
by: Paul Hale | last post by:
Hi, This is my set up... Root (.aspx file for non-authenticated users) Root\Members (.aspx files for authenticated users) Root\Images (images for entire web site) My MasterPage resides in...
0
by: Joel May | last post by:
I love that feature where you hit F12 when a symbol is selected and you immediately navigate to the symbol definiton. However, it's not working properly any more. I was working in this project,...
0
by: Jon | last post by:
Hi all Initially i faced a problem running ASP Application where webform components do not display(Running on IIS 5.0 and VS 2002) Refer to below for previous post...
1
by: Israel | last post by:
I'll preface this by saying that my preference is to dump a database to SQL and transfer that file around but this is not the situation that I'm in and I'll probably be in this situation in...
4
by: imoschak | last post by:
Hi there i have a problem while parsing and xml file. The file is a backup from moodle (moodle.xml). When i open the file with one of my editors and setting Encoding to utf8 font courier standard...
0
by: Cylix | last post by:
Any one know How to using Broswer Helper Object to create something like google toolbar?
2
nomad
by: nomad | last post by:
I'm using Dreamweaver mx2004 and XAMPP. When I write a php in Dreamweaver and I want to view it in my Broswer it does not show. Under Dreamweaver Management I have saved by php file in these...
10
by: vijayarl | last post by:
Hi All, Thanks in Advance.. Problem statement: Need to display the raw stats file report but script count the stat's file which has *.xls Am reading the input raw stats files from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...

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.