Problem on display many XML files in web broswer IE

G

Guest

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
 
G

Guest

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"%>
 
G

Guest

Should be ValidateRequest="False"
Tahnks

david said:
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"%>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top