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
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
Why will you usually create an aspnet user account in the database for an asp.net web application?
Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.
What are server side controls?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
How is a session stored and maintained in asp.net?
What is latest version of asp.net mvc? : Asp.Net MVC
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is viewstategenerator?
What is the postback property in asp.net?
How tooltip is set through code-behind in ASP.NET?
What is new asp.net core?
What is asp.net architecture?
What are the session management techniques asp net?