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
How do you hide the columns?
How ASP.NET page works?
What is server infrastructure & server components?
Explain what is an assembly?
What is the function of the ViewState property?
What do you mean by caching in asp.net?
Can we have multiple master pages in asp net?
What is a viewstate?
Explain about ASP.NET?
Can we set which type of comparison we want to perform by the CompareValidator control?
What is the default timeout for a cookie?
What is webresource axd?
Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?
What are client activated objects and server activated objects?
What is difference between Server.Transfer and Response.Redirect in ASP.NET?