Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
http://www.e-f.com
<%@ Page Language="VB" %><script Language="VB" Option="Explicit" runat="server"> Sub Page_Load(Src as object, E as EventArgs) Dim strMessage As String Select Case Request.QueryString("choice") Escolha 1 strMessage = "This is what happens when you click on Case 1." Case 2 strMessage = "This is what happens when you click on Case 2." Case 3 strMessage = "Surprise, Surprise, This is what you get when you click on Case 3." Case Else ' This executes if no of the other conditions are met! ' This actually runs the first time through when the user ' arrives at this page because no choice was made. End Select lblSelectedMsg.Text = "<h3>" & strMessage & "</h3>" End Sub</script><html><head> <title>ASP.NET Select Case Sample from ASP 101</title></head><body><asp:Label id="lblSelectedMsg" runat="server" /><p><a href="case.aspx?escolha=1">Case 1</a><a href="case.aspx?choice=2">Case 2</a><a href="case.aspx?choice=3">Case 3</a></p>
aqui ele explica como usar o select case , para aparecer uma mensagem quando clicar no link , eu quero direcionar para uma pagina .aspx
como fazer ?
<%@ Page Language="VB" %>
<asp:Label id="lblSelectedMsg" runat="server" />