Results 1 to 2 of 2

Thread: Invoke a Method when UserControl's textbox event is fired

  1. #1

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    Invoke a Method when UserControl's textbox event is fired

    Good Day

    I have a page that has a UserControl on it and i want to call a Method in the Host page that will fire when a textbox texchanged event got fire.



    i want to Invoke the Function the the "Remove Staff " Button that has been Disabled has been clicked.

    Thanks
    Attached Images Attached Images  

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Invoke a Method when UserControl's textbox event is fired

    Hey,

    What you want to do is create an Event in the UserControl, and subscribe to that event in the main page. Then, when you raise the Event in the UserControl, you can take additional action in the Event Handler on the host page.

    Have a look at this article here:

    http://codebetter.com/blogs/brendan....-Controls.aspx

    On doing just that.

    Hope that helps!!

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width