G
Guest
Hi guys!
I am a beginner with aspx (i have some background with .asp). And i am
trying tu use a 'code-behind' page in order to execute all transactions in
that page and leave as clean as possible the .aspx with the html.
As my start-point, i am building a login page. I put the textbox and submit
button on the page index.aspx; and, i put all the db validation on the page
maquinaria.vb.
on index.aspx i have this button:
<asp:button id="submit" text="submit"
OnClick="login(usuario.text,clave.text)" runat="server" />
on maquinaria.vb i have this code:
function login(usuario, clave)
some code here
end function
the problem is that i always get this error:
BC30408: Method 'Public Function login(usuario As Object, clave As Object)
As Object' does not have the same signature as delegate 'Delegate Sub
EventHandler(sender As Object, e As System.EventArgs)'.
on .asp i worked this out using the "include" command in order to insert the
page with my active code.
Please, could any one help me with this one ?
Thank you very much guys !
C ya around
David Valiente
I am a beginner with aspx (i have some background with .asp). And i am
trying tu use a 'code-behind' page in order to execute all transactions in
that page and leave as clean as possible the .aspx with the html.
As my start-point, i am building a login page. I put the textbox and submit
button on the page index.aspx; and, i put all the db validation on the page
maquinaria.vb.
on index.aspx i have this button:
<asp:button id="submit" text="submit"
OnClick="login(usuario.text,clave.text)" runat="server" />
on maquinaria.vb i have this code:
function login(usuario, clave)
some code here
end function
the problem is that i always get this error:
BC30408: Method 'Public Function login(usuario As Object, clave As Object)
As Object' does not have the same signature as delegate 'Delegate Sub
EventHandler(sender As Object, e As System.EventArgs)'.
on .asp i worked this out using the "include" command in order to insert the
page with my active code.
Please, could any one help me with this one ?
Thank you very much guys !
C ya around
David Valiente