S
Support
Hello:
Using vb.net
I have a web page home.aspx
that has a placeholder: myplaceholder.
on Page_load:
depending a conditions, I either have:
myplaceholder .Controls.add(MycontrolA)
or
myplaceholder .Controls.add(MycontrolB)
MyControlA contains a submit button
and
MyControlB contains a submit button
I wish to be able to detect in home.aspx
if either
MyControlB.Submit was clicked or if MyControlA.Submit was clicked.
I tried using in MyControlA
Protected Sub btSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btSubmit.Click
RaiseBubbleEvent(Me, e)
End Sub
but nothing happens in home.aspx
Protected Overrides Function OnBubbleEvent(ByVal sender As System.Object,
ByVal e As System.EventArgs) As Boolean
Response.Write("<br><br>ParentControl's OnBubbleEvent called.")
Response.Write("<br>Source of event is: " + sender.ToString())
End Function
Help - what am I missing ?
Thank you!
T
Using vb.net
I have a web page home.aspx
that has a placeholder: myplaceholder.
on Page_load:
depending a conditions, I either have:
myplaceholder .Controls.add(MycontrolA)
or
myplaceholder .Controls.add(MycontrolB)
MyControlA contains a submit button
and
MyControlB contains a submit button
I wish to be able to detect in home.aspx
if either
MyControlB.Submit was clicked or if MyControlA.Submit was clicked.
I tried using in MyControlA
Protected Sub btSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btSubmit.Click
RaiseBubbleEvent(Me, e)
End Sub
but nothing happens in home.aspx
Protected Overrides Function OnBubbleEvent(ByVal sender As System.Object,
ByVal e As System.EventArgs) As Boolean
Response.Write("<br><br>ParentControl's OnBubbleEvent called.")
Response.Write("<br>Source of event is: " + sender.ToString())
End Function
Help - what am I missing ?
Thank you!
T