Results 1 to 5 of 5

Thread: Add client event to sever side

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    1

    Add client event to sever side

    How to add client event to sever side, Please explain with simple sample code or example


  2. #2
    Junior Member
    Join Date
    Dec 2007
    Answers
    4

    Re: Add client event to sever side

    For example to add javascript function( ex: sample ) to onclick event of button in server side

    ButtonName.Attributes.Add("OnClick","Sample()")


  3. #3
    Expert Member
    Join Date
    Dec 2007
    Answers
    138

    Re: Add client event to sever side

    Yes this will work.


  4. #4
    Junior Member
    Join Date
    May 2006
    Answers
    1

    Re: Add client event to sever side

    Hi,
    You have To write it on pageLoad event

    ButtonName.Attributes.Add("OnClick","Sample()")


  5. #5
    Contributing Member
    Join Date
    May 2007
    Answers
    60

    Re: Add client event to sever side

    Hi,

    You have to wrt client attchement for the server controls in Page_Init not in Page_Load before loding the page to the browser only u have to add the functions to the controls.

    Regards,
    Hari Prasad


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact