Hi I am trying to get my program to respond to changes in the parameters in the URL, specifically a label on the form. The form is my default.aspx form and I have a label on it that I would like to be updated after I change the URL.
This is what I have in the Form Load routine:
Dim Objective As String = Request.QueryString("Objective#")
If Objective = 1 Then
Label1.Text = "This text should show in my label."
End If
I thought that the default page would be reloaded each time I click the hyperlink to update the url but it doesn’t seem to happen.
I use a hyperlink to update the url and I put code in the default.aspx Form Load routine but the code doesn’t seem to be read after clicking the hyperlink. Is there a way that I can get my Label on the form to update by my clicking the hyperlink?
Please help!
Thanks.
This is what I have in the Form Load routine:
Dim Objective As String = Request.QueryString("Objective#")
If Objective = 1 Then
Label1.Text = "This text should show in my label."
End If
I thought that the default page would be reloaded each time I click the hyperlink to update the url but it doesn’t seem to happen.
I use a hyperlink to update the url and I put code in the default.aspx Form Load routine but the code doesn’t seem to be read after clicking the hyperlink. Is there a way that I can get my Label on the form to update by my clicking the hyperlink?
Please help!
Thanks.