?

Log in

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

Buy 600+ Real Time Interview Videos

Call +91-22-66752917 or mail us on questpond@questpond.com for more details on C#, .NET, ASP.NET, SQL Server interview question videos.

SQL Server interview question videos

Latest Month

January 2017
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Tags

Powered by LiveJournal.com