I am trying to display a label on the Login.aspx page based on the access denied values that are produces when a user clicks a links to a page that requires a login. My code is below.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
tring() = "%2fefitnessplanner_dev%2f
Label1.Visible = True
Else : Label1.Visible = False
Admiitedly I have not done much code writing on this project so I am not sure if the code is accurate. I do not get a compile/build error. The problem is the label displays regardless of what link I click. Is my syntax right. Should I write it another way. The following is the entire url return value:
If I can get past this hurdle it will help me with this project greatly. Thanks for your help in advance.