Click here to Skip to main content
15,888,195 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on news portal. This application have two section user section and admin section.

In user section, I am using following method to resolve and show custom error page as page not found if url/page not found any page.

<system.web>
<customerrors mode="On" defaultredirect="Error1">
<error statuscode="404" redirect="~/User/NoPageFound">



It works fine.

In admin section, If url/page is not found then above page is shown.

But I want to show my other error page which location as different in application like below:

"~/Admin/NoPageFound"

I have tried so many times but failed.

How to show my above requirement?

Please resolve this issue if possible.

What I have tried:

Please resolve this issue if possible.
Posted
Updated 6-Nov-16 5:26am

1 solution

 
Share this answer
 
Comments
SUJEET KR SINGH 6-Nov-16 17:06pm    
I think it is not my solution.
Why you think so? Can you please explain so that I clearly understand your problem?
SUJEET KR SINGH 6-Nov-16 17:07pm    
Please give me another solution.

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