Go Back   Velocity Reviews > Newsgroups > DotNet
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

DotNet - Call Client javaScript function,on server side ButtonClick Event

 
Thread Tools Search this Thread
Old 10-13-2006, 07:13 AM   #1
Default Call Client javaScript function,on server side ButtonClick Event


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.


gsakthi@sraindia.com
  Reply With Quote
Old 10-13-2006, 10:41 PM   #2
Scott M.
 
Posts: n/a
Default Re: Call Client javaScript function,on server side Button Click Event
btn.attributes.add("onClick",javaScriptFunctionCal lHere)

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


<> wrote in message
news:%23%...
> 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.





Scott M.
  Reply With Quote
Old 09-09-2008, 12:53 PM   #3
DODO-Emipedia
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default Checking
Quote:
Originally Posted by Scott M.
btn.attributes.add("onClick",javaScriptFunctionCal lHere)

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


<> wrote in message
news:%23%...
> 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 post


DODO-Emipedia
DODO-Emipedia is offline   Reply With Quote
Old 09-09-2008, 12:55 PM   #4
DODO-Emipedia
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default
Quote:
Originally Posted by DODO-Emipedia
Good post
Testing again


DODO-Emipedia
DODO-Emipedia is offline   Reply With Quote
Old 08-27-2009, 02:36 PM   #5
hellobiswa2001
Junior Member
 
Join Date: Aug 2009
Posts: 5
Default
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


hellobiswa2001
hellobiswa2001 is offline   Reply With Quote
Old 08-27-2009, 02:37 PM   #6
hellobiswa2001
Junior Member
 
Join Date: Aug 2009
Posts: 5
Default
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


hellobiswa2001
hellobiswa2001 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Client or server? bootmgr MCITP 2 08-24-2008 05:10 PM
Client side caching with themes in VS 2005 praveensharma Software 0 06-18-2008 09:05 AM
TRADING FEMALE CELEB INTERVIEWS ON DVD stu DVD Video 1 05-26-2008 09:39 AM
asp.net - Client side script not recognized for the usercontrol sara_23apr Software 1 09-27-2006 06:10 PM
Re: Need Ideas For A New Server, Long Post Gareth Church A+ Certification 2 07-27-2003 12:46 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46