Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   asp:button w/ client side and server side click event (http://www.velocityreviews.com/forums/t771089-asp-button-w-client-side-and-server-side-click-event.html)

Aymer 09-17-2003 08:44 PM

asp:button w/ client side and server side click event
 
I have a web control button.
<asp:button text="Save" runat="server"
onClick="EnterBtn_Click" id="btnSave" style="width:
60px;"/>

How do i add a client-side click event and server-side
click event on the same button?


Alvin Bruney 09-19-2003 03:10 PM

Re: asp:button w/ client side and server side click event
 
server side click event happens for you automatically when you click on the
button in DESIGN MODE otherwise you need to manually wire the event in the
initializecomponent function. for client side just add onclick="whatever()"
to the <asp:button tag. client side gets processed before server side
"Aymer" <aymerb@yahoo.com> wrote in message
news:05bc01c37d5c$8f32cc00$a301280a@phx.gbl...
> I have a web control button.
> <asp:button text="Save" runat="server"
> onClick="EnterBtn_Click" id="btnSave" style="width:
> 60px;"/>
>
> How do i add a client-side click event and server-side
> click event on the same button?
>





All times are GMT. The time now is 08:20 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.