s.rye
07-21-2009, 04:39 PM
Hi,
When my page loads I want to compare the value of a QueryString against the data in a column from an Access Database. I then want to redirect the user to another page if the value of the QueryString does not exist within the column.
I thought something like this....
Protected Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Request.QueryString("ProdID") <> ACCESSDATABASECOLUMN
Then
Response.Redirect("page1.aspx")
Else
DOSOMETHINGELSE
End Sub
But I do not know what code I should use above where I have "ACCESSDATABASECOLUMN" to pull in the information from the database.
Can anyone help with this please? Maybe there is a completely different way that I can try that will work?
Thanks
Steve
When my page loads I want to compare the value of a QueryString against the data in a column from an Access Database. I then want to redirect the user to another page if the value of the QueryString does not exist within the column.
I thought something like this....
Protected Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Request.QueryString("ProdID") <> ACCESSDATABASECOLUMN
Then
Response.Redirect("page1.aspx")
Else
DOSOMETHINGELSE
End Sub
But I do not know what code I should use above where I have "ACCESSDATABASECOLUMN" to pull in the information from the database.
Can anyone help with this please? Maybe there is a completely different way that I can try that will work?
Thanks
Steve