I have following function:
in a.aspx.vb page:
If a = True Then
'do something
Else
'i want to show a not authorized page here
End If
Will i have to create a new page and give the url under else to show not authorized page?
Or is there any other pre-built way to do this in .net 4.0?
Yes, just put in a redirect to the ‘error’ page.