PDA

View Full Version : Access click event in composite control



shaoen01
Dec 30th, 2005, 09:12 AM
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

Nischumacher
Dec 30th, 2005, 12:24 PM
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.

shaoen01
Dec 30th, 2005, 04:55 PM
My composite server control is created in a .vb file. Yeah, thanks for the info anyway.