I need to redirect the browser to a page in my project which might tell them that the link is not available presently - similar to the IE6 error message.
I do not know which route to follow - and I have tried the following two, but I cannot get them to work.
1. I have changed the web.config file to read :
<customErrors mode="On" defaultredirect="notavailable.aspx" />
and
2. I have changed the global.asax file to the following :
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("unavailable.aspx")
End Sub
Can some one please guide me further ?
Thanks
I do not know which route to follow - and I have tried the following two, but I cannot get them to work.
1. I have changed the web.config file to read :
<customErrors mode="On" defaultredirect="notavailable.aspx" />
and
2. I have changed the global.asax file to the following :
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("unavailable.aspx")
End Sub
Can some one please guide me further ?
Thanks