set the validateRequest attribute of the Page directive to false:
<%@ Page validateRequest="false" %>
For all applications on your server
<configuration> <system.web> <pages validateRequest="false" /> </system.web> </configuration>
For more information regarding this you can navigate
here
If i misunderstand your question, please feel free to correct me.I hope the above information will be helpful. If you have more concerns, please let me know.
If this would be really helpful to you then don't forgot to Vote and Make Answer as Accepted.