asp equivilent for "onclick"
-
Yes,
onclick
in fact. It overrides the JavaScript one when used on a server control. So onclick of this button<asp:Button onclick="myServersideEvent" runat="server" />
a server side (ASP.NET) event will be fired with a postback, it won't look for a JavaScript event handler on the client side. On the server side you would have:protected void myServersideEvent(object sender, eventArgs e){...}
. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? -
Yes,
onclick
in fact. It overrides the JavaScript one when used on a server control. So onclick of this button<asp:Button onclick="myServersideEvent" runat="server" />
a server side (ASP.NET) event will be fired with a postback, it won't look for a JavaScript event handler on the client side. On the server side you would have:protected void myServersideEvent(object sender, eventArgs e){...}
. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand?hi... as a continuation, can u pls put down a code that opens a seperate wondow and executes a aspx page there. I want the 'onclick' function, and want to know where/how to place the same. I was born intelligent
Education ruined me!.