Calling Client side javascript fucntions from asp:button control event - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Calling Client side javascript fucntions from asp:button control event

mwaismwais Posts: 2Member
how can associate client side custom javascript fucntions to WebForm Controls like button or TextBox () Control.
any help ?
Awais

Comments

  • NC01NC01 Posts: 4Member
    This will add an onclick event to a button referenced as oButton, calling the client-side function jsFynctionName()
    oButton.Attributes.Add("onclick", "javascript:jsFunctionName()");

    HTH,
    NC...

    : how can associate client side custom javascript fucntions to WebForm Controls like button or TextBox () Control.
    : any help ?
    : Awais
    :

Sign In or Register to comment.