?

Log in

No account? Create an account

Previous Entry | Next Entry

We would like thank www.questpond.com for their continuous support to provide us these interview questions on a daily basis.

While working with MVC you may have noticed that MVC actions doesn’t allow posting HTML values. This is done to avoid cross site scripting security issues.Look at the following example where we are trying to post HTML to the MVC action.While working with MVC you may have noticed that MVC actions doesn’t allow posting HTML values. This is done to avoid cross site scripting security issues.Look at the following example where we are trying to post HTML to the MVC action.

server


But you can bypass this restriction by using one of the following 2 attributes

1) ValidateInput attribute at controller level or action level
    server2
2) AllowHtml attribute at Mode Level
    server3


You can also read 50 extensive ASP.NET MVC Interview questions with answers from this codeproject article.
Copy right www.questpond.com

Tags

Latest Month

September 2017
S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
Powered by LiveJournal.com