M
Miguel Dias Moura
Hello,
i have a form in an ASP.net / VB with 2 buttons:
<code>
<form action="" class="tableForm" runat="server">
<asp:Button ID="Ybt" runat="server" OnClick="Go" Text="Yes" />
<asp:Button ID="Nbt" runat="server" OnClick="Go" Text="No" />
</form>
</code>
and then i have this VB script:
<code>
<script runat="server">
Sub goToPage(sender As Object, e As System.EventArgs)
Response.Redirect("pageYes.aspx")
End Sub
</script>
</code>
What i want is to redirect to "pageYes.aspx" if button "Yes" is pressed and
to "pageNo.aspx" if button "No" is pressed.
In this moment it redirects allways to the same page. Can u help me out?
Thank You,
Miguel
i have a form in an ASP.net / VB with 2 buttons:
<code>
<form action="" class="tableForm" runat="server">
<asp:Button ID="Ybt" runat="server" OnClick="Go" Text="Yes" />
<asp:Button ID="Nbt" runat="server" OnClick="Go" Text="No" />
</form>
</code>
and then i have this VB script:
<code>
<script runat="server">
Sub goToPage(sender As Object, e As System.EventArgs)
Response.Redirect("pageYes.aspx")
End Sub
</script>
</code>
What i want is to redirect to "pageYes.aspx" if button "Yes" is pressed and
to "pageNo.aspx" if button "No" is pressed.
In this moment it redirects allways to the same page. Can u help me out?
Thank You,
Miguel