I know nothing about ASP so any help is greatly appreciated.
I have inherited an ASP page which contains a product ordering form. After a QTY is entered and the form is submitted using a numbered submit button, a second ASP form processes the data. At the foot of this second ASP page a Response.Redirect statement returns the user to the ordering form on the initial page. My problem is that the redirect always goes back to the top of the firstpage.asp instead of going to the anchors. Here's the code in question:
Is this syntax incorrect? Or could it be because it's redirecting to anchors that are in a scrolling <div> on firstpage.asp. I.e., it's returning to the page but can't scroll to the anchor itself?
Any help (especially snippets of code) are welcomed and most appreciated.
~ Gary
I have inherited an ASP page which contains a product ordering form. After a QTY is entered and the form is submitted using a numbered submit button, a second ASP form processes the data. At the foot of this second ASP page a Response.Redirect statement returns the user to the ordering form on the initial page. My problem is that the redirect always goes back to the top of the firstpage.asp instead of going to the anchors. Here's the code in question:
Code:
If(Request.Form("whichSubmitButton") = "1")Then
Response.Redirect "firstpage.asp#anchor1"
ElseIf(Request.Form("whichSubmitButton") = "2")Then
Response.Redirect "firstpage.asp#anchor2"
Else
Response.Redirect "firstpage.asp#anchor3"
End If
Is this syntax incorrect? Or could it be because it's redirecting to anchors that are in a scrolling <div> on firstpage.asp. I.e., it's returning to the page but can't scroll to the anchor itself?
Any help (especially snippets of code) are welcomed and most appreciated.
~ Gary