Asp.net SS control call client java function

Discussion in 'ASP .Net Web Controls' started by Mike Moore, Mar 11, 2005.

  1. Mike Moore

    Mike Moore Guest

    Can an asp.net button that is a server side control call a client side java
    function when the button is clicked? If so, please provide
    example.....thanks.,
     
    Mike Moore, Mar 11, 2005
    #1
    1. Advertising

  2. Mike Moore

    Wilco Bauwer Guest

    Yes. You can add an attribute "onclick" to the button:

    myButton.Attributes["onclick"] = "alert('hello world');"

    ----
    - Wilco Bauwer
    Blog & Custom Controls @ http://wilcoding.xs4all.nl
     
    Wilco Bauwer, Mar 12, 2005
    #2
    1. Advertising

  3. Mike Moore

    prakash Guest

    button1.attribute.add("onclick","javascript function name")


    regards
    Prakash.S
     
    prakash, Apr 8, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TWlrZSBNb29yZQ==?=

    Asp.Net SS control call client java function

    =?Utf-8?B?TWlrZSBNb29yZQ==?=, Mar 11, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,118
    Tampa.NET Koder
    Mar 12, 2005
  2. grbgooglefan
    Replies:
    2
    Views:
    460
    Pascal Bourguignon
    Jan 30, 2008
  3. grbgooglefan
    Replies:
    4
    Views:
    476
    Kenny McCormack
    Jan 30, 2008
  4. grbgooglefan
    Replies:
    0
    Views:
    426
    grbgooglefan
    Jan 30, 2008
  5. Simon
    Replies:
    5
    Views:
    822
    Steven Cheng [MSFT]
    Apr 30, 2008
Loading...

Share This Page