Valid 70-486 Dumps shared by ExamDiscuss.com for Helping Passing 70-486 Exam! ExamDiscuss.com now offer the newest 70-486 exam dumps, the ExamDiscuss.com 70-486 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 70-486 dumps with Test Engine here:
You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation. What should you do?
Correct Answer: C
Explanation/Reference: Explanation: The HttpRequest.Unvalidated property gets the HTTPrequest values without triggering request validation. Request validation checks for HTML markup and script that might indicate a potential cross-site scripting attack. By default, all values are checked using request validation and if any values contain markup or script, ASP.NET throws an HttpRequestValidationException exception. Use this method if you anticipate that the request will contain markup (for example, you are allowing users to post content that contains markup) and you want to get the raw value of a request. References: https://msdn.microsoft.com/en-us/library/system.web.httprequest.unvalidated.aspx