Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Access click event in composite control

    I am designing a search composite control with an click event handler called button1_click. The search composite control consists of 1 textbox and button. The search composite control will be used in the webform and when the user clicks the button of the composite control, i would like to call a method().

    However, i have been unsuccessful in trying to access the click event handler in the webform. Is it possible to access the button1_click event just like how we always access the button click event handler in webforms? Thanks

  • #2
    Regular Coder Nischumacher's Avatar
    Join Date
    Oct 2005
    Location
    Bombay, India
    Posts
    196
    Thanks
    0
    Thanked 2 Times in 2 Posts
    if it is a Web User Control (.ascx file), then the button1_click event is to be written in that file only.
    not in a webform that uses the composite control.
    - NS 666
    .net DEVILoper

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    1
    Thanked 0 Times in 0 Posts
    My composite server control is created in a .vb file. Yeah, thanks for the info anyway.


  •  

    Posting Permissions

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