M
Miguel Dias Moura
Hello,
in an ASP.net / VB page i created a form with a button. When the button is
clicked i want to redirect to a new page. I have the following:
....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<script runat="server">
void goToPage(object sender, System.EventArgs e)
{
Response.Redirect("inscricoes-explicadores-step01.aspx");
}
</script>
<html>
....
and
<asp:Button CssClass="button" ID="iniciar" runat="server" OnClick="goToPage"
Text="Iniciar Inscrição" ToolTip="Click Buttono" Width="140" />
I get this error:
Compiler Error Message: BC30188: Declaration expected.
in line: void goToPage(object sender, System.EventArgs e)
Can you tell me what am i doing wrong and what should i do to fix it?
Thank You,
Miguel
in an ASP.net / VB page i created a form with a button. When the button is
clicked i want to redirect to a new page. I have the following:
....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<script runat="server">
void goToPage(object sender, System.EventArgs e)
{
Response.Redirect("inscricoes-explicadores-step01.aspx");
}
</script>
<html>
....
and
<asp:Button CssClass="button" ID="iniciar" runat="server" OnClick="goToPage"
Text="Iniciar Inscrição" ToolTip="Click Buttono" Width="140" />
I get this error:
Compiler Error Message: BC30188: Declaration expected.
in line: void goToPage(object sender, System.EventArgs e)
Can you tell me what am i doing wrong and what should i do to fix it?
Thank You,
Miguel