I am trying to reference a dropdownlist in the contentplacehol der of my project, in order to redirect users to the proper page, depending on what they select on the default page. Visual Basic Please.
On the default.aspx page I have a dropdownlist, a textbox and a submit button, which is set to postback to "redir.aspx ", all inside contentplacehol der.
On the redir.aspx page, I have typed in the page load Sub:
Select Case Request.Form("D ropDownList1")
Case "Health Insurance"
Server.Transfer ("Default2.aspx ")
Case "Group Health Insurance"
Server.Transfer ("Group_Health. asp")
Case "Medicare Suppliments"
Server.Transfer ("Medicare_Supp liments.asp")
Case "Life Insurance"
Server.Transfer ("Life_Insuranc e.aspx")
End Select
This works perfectly on my test site, which does not use master pages. I did that just to see if it would work and it did. But I really want it to work with master pages.
Can anyone help in Visual Basic? Thank you.
On the default.aspx page I have a dropdownlist, a textbox and a submit button, which is set to postback to "redir.aspx ", all inside contentplacehol der.
On the redir.aspx page, I have typed in the page load Sub:
Select Case Request.Form("D ropDownList1")
Case "Health Insurance"
Server.Transfer ("Default2.aspx ")
Case "Group Health Insurance"
Server.Transfer ("Group_Health. asp")
Case "Medicare Suppliments"
Server.Transfer ("Medicare_Supp liments.asp")
Case "Life Insurance"
Server.Transfer ("Life_Insuranc e.aspx")
End Select
This works perfectly on my test site, which does not use master pages. I did that just to see if it would work and it did. But I really want it to work with master pages.
Can anyone help in Visual Basic? Thank you.
Comment