<customErrors mode="RemoteOnly" defaultRedirect="~/login.aspx"/> <!--<customErrors mode="Off" />-->
in webconfig, in this my webform content not showing, if i remove defaultredirect from it, then its show content.
Hi mukesh1,
Since the defaultRedirect attribute has been set and mode is RemoteOnly, if the page is requested from a remote machine page is redirected to login.aspx and if the page is requested from the local machine the default error page is shown.
For more details refer below article.
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.