P
PJ6
I'm apparently not understanding something. I want to capture some user
events in a web control I'm inheriting from, such as a table cell or a
button. The code below doesn't work, the attributes aren't even rendered.
I'm sure I'm not calling the sub right, either. Can someone clue me in?
Paul
Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)
Attributes.Add("onMouseOut", "TEST")
Attributes.Add("onClick", "TEST")
MyBase.OnPreRender(e)
End Sub
Public Sub TEST()
Me.BackColor = System.Drawing.Color.FromArgb(100, 100, 100)
End Sub
events in a web control I'm inheriting from, such as a table cell or a
button. The code below doesn't work, the attributes aren't even rendered.
I'm sure I'm not calling the sub right, either. Can someone clue me in?
Paul
Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)
Attributes.Add("onMouseOut", "TEST")
Attributes.Add("onClick", "TEST")
MyBase.OnPreRender(e)
End Sub
Public Sub TEST()
Me.BackColor = System.Drawing.Color.FromArgb(100, 100, 100)
End Sub