Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have entered <script> in my url.SO error occurred.How to solve this

What I have tried:

using asp.net C# I have entered <script> in my url.SO error occurred.How to solve this
Posted
Updated 1-Mar-16 22:13pm
Comments
Member 12360380 29-Feb-16 23:25pm    
I need solution urgently.please help
F-ES Sitecore 1-Mar-16 8:00am    
If you turn off friendly errors and use your own 500 error page it should be used rather than the error you're seeing. If you google for implementing a custom error page you'll find instructions.

1 solution

you can try this way
XML
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900