AlishS
New Member
- Joined
- Oct 27, 2022
- Messages
- 9
- Thread Author
- #1
Recently, I encountered an interview question.
You have completed an ASP.NET application with .NET framework 3.5.
You plan to submit text with HTML tags to a page in the application.
You need to make sure that the HTML code will be submitted without causing any disruption to other programs running on the web server.
What is your choice?
1. Add the following in Web.Config
2. Add the following in Machine.Config
I went through online Link Removed but couldn't it. Can someone please confirm if my answer is correct?
You have completed an ASP.NET application with .NET framework 3.5.
You plan to submit text with HTML tags to a page in the application.
You need to make sure that the HTML code will be submitted without causing any disruption to other programs running on the web server.
What is your choice?
1. Add the following in Web.Config
Code:
<system.web>
<pages validateRequest="false"/>
</system.web>
2. Add the following in Machine.Config
Code:
<system.web>
<pages validateRequest="false"/>
</system.web>
I went through online Link Removed but couldn't it. Can someone please confirm if my answer is correct?