You have multiline textbox and submit button. if you paste
xml content into multiline textbox and hit submit button.
what action will perform?

Answer Posted / srini

ValidateRequest is default to true

"The server encountered a potenially unsafe form request......" exception is thrown when it's 'true' as it validates the request when posted back.

If you change it to 'false', page will be posted without any exception. But we need to implement custom encoding technique before storing it to DB to avoid scrip inserts for security reasons.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a .net web application consume java web service?

504


What is the use of data set in asp.net?

478


How you will improve web application performance?

544


What is a web farm?

586


Explain the various authentication mechanisms in asp.net.

479






Define viewstate in .net?

534


Which is the parent class of the web server control?

562


Explain login control and form authentication.

551


What is enableviewstate in asp net?

518


What are session objects?

508


Describe the events in the life cycle of a web application.

592


What is slidemaster?

460


What is the difference between viewstate and hidden field in asp.net?

483


How do you identify that the page is postback?

534


Any disadvantages in Dataset and in reflection ?

2815