Windows 7 Permit HTML material to be published.

AlishS

New Member
Joined
Oct 27, 2022
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

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 resources but couldn't it. Can someone please confirm if my answer is correct?
 
Last edited:
Back
Top Bottom