Link to home
Start Free TrialLog in
Avatar of XPLR
XPLR

asked on

onclientclick and onclick asp.net button control

I want to know if i can call 1 java script function with one client button click and one function with onclick for one control.

like this: <asp:button Text=“e”
                     OnClick=“Button1_Click”
                     OnClientClick=“javascript function_Click”
                     runat=“server” />      
And which one will be executed first?
I want the javascript to post the confirm message and postback user info to another page.
SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial