page property

G

Guest

how can i set the page property validaterequest="false"? Where in code does
this go and what is the syntax?


Thanks

Manny
 
B

Ben Lucas

It goes in the Page directive at the top of the aspx file. Should look
something like this:

<%@ Page language="c#" Codebehind="Test.aspx.cs" AutoEventWireup="false"
Inherits="Test" ValidateRequest="false" %>

Of course you'll have to change the name of the Codebehind file and the
Inherits tag to match your page and code.

Also, note that this page directive is a feature that was introduced with
..NET Framework version 1.1.
 

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