B
Brett Wesoloski
I have a user control that has a text box in it. Well what I would like to
happen is when a user changes the text my aspx page will know and fire so I
can run some code behind.
I have tried many things and have looked on google but can't find what I am
looking for.
This is what I have in my user control
Public Event DateTextChanged(ByVal sender As Object, ByVal e As EventArgs)
Public Sub txtStartDate_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles txtStartDate.TextChanged
RaiseEvent DateTextChanged(sender, e)
End Sub
This is what I have on my aspx page.
AddHandler calDateFrom.DateTextChanged, AddressOf
calDateFrom_DateTextChanged
Private Sub calDateFrom_DateTextChanged(ByVal sender As Object, ByVal e As
EventArgs) Handles calDateFrom.DateTextChanged
MsgBox("test")
End Sub
I have also tried AddHandler calDateFrom.DateTextChanged, Address of
calDateFrom.txtStartDate_TextChanged
Any one know what I am missing?
TIA,
Brett
happen is when a user changes the text my aspx page will know and fire so I
can run some code behind.
I have tried many things and have looked on google but can't find what I am
looking for.
This is what I have in my user control
Public Event DateTextChanged(ByVal sender As Object, ByVal e As EventArgs)
Public Sub txtStartDate_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles txtStartDate.TextChanged
RaiseEvent DateTextChanged(sender, e)
End Sub
This is what I have on my aspx page.
AddHandler calDateFrom.DateTextChanged, AddressOf
calDateFrom_DateTextChanged
Private Sub calDateFrom_DateTextChanged(ByVal sender As Object, ByVal e As
EventArgs) Handles calDateFrom.DateTextChanged
MsgBox("test")
End Sub
I have also tried AddHandler calDateFrom.DateTextChanged, Address of
calDateFrom.txtStartDate_TextChanged
Any one know what I am missing?
TIA,
Brett