Call Client javaScript function,on server side ButtonClick Event

G

gsakthi

Hi,
On Server Side Button Click event,i need to call a javascript Confrim ,if "Ok" is clicked in the confirm popup, Again server side validation should be done. If anyone knows the solution ,pls let me know.
 
S

Scott M.

btn.attributes.add("onClick",javaScriptFunctionCallHere)

And then just make your client-side JavaScript in a function.
 
Joined
Sep 9, 2008
Messages
2
Reaction score
0
Checking

Scott M. said:
btn.attributes.add("onClick",javaScriptFunctionCallHere)

And then just make your client-side JavaScript in a function.


<[email protected]> wrote in message
news:%23%[email protected]...
> Hi,
> On Server Side Button Click event,i need to call a javascript Confrim ,if
> "Ok" is clicked in the confirm popup, Again server side validation should
> be done. If anyone knows the solution ,pls let me know.
Good post8)
 
Joined
Aug 27, 2009
Messages
5
Reaction score
0
you have to use the onClentClick event of for calling the client side javascript fuction, the attibute will b displayed on the server control

Best of luck
Keep in touch
 
Joined
Aug 27, 2009
Messages
5
Reaction score
0
you have to use the onClentClick event of for calling the client side javascript fuction, the attibute will b displayed on the server control

Best of luck
Keep in touch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top