Here is a Small example:
My Parent Ascx contain a label with ID="lblText" and a button. the
button have this code behind:
Private Sub btnParent_Click (ByVal sender As system.Object, ByVal e
As System.EventArg s) Handles btnParent.Click
lblText.Text = "Text changed by parent button"
End Sub
My inherited ascx contain all the parent control but also a new button
with this code behind:
Private Sub btnChild_Click( ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnChild.Click
lblText.Text = "Text Changed by Child button"
End Sub
now if I put my inherited control on my page and I click on the Parent
Button the label will change. but if I click on the child button nothing
append. I also tried to to a breakpoint on my child button code and the
program never stopped when I clicked on my button.
Thanx
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!