T
TB
Hi All:
What would be the right way to get the ID of a server control inside an
event for that same server control?
For example:
I have this textbox called textbox1 which the following event code attached:
Private Sub textbox1_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handlestextbox1.TextChanged
if textbox1.Text.ToString() = "This is it" then
' something happens
end if
End Sub
Now, since I have lot of these textboxes with similar events, I would like
to make a generic code line (maybe for a sub), replacing "textbox1.Text"
with something like (pseudocode) "CurrentControl.Text"
What would be the right reference?
Thanks
TB
What would be the right way to get the ID of a server control inside an
event for that same server control?
For example:
I have this textbox called textbox1 which the following event code attached:
Private Sub textbox1_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handlestextbox1.TextChanged
if textbox1.Text.ToString() = "This is it" then
' something happens
end if
End Sub
Now, since I have lot of these textboxes with similar events, I would like
to make a generic code line (maybe for a sub), replacing "textbox1.Text"
with something like (pseudocode) "CurrentControl.Text"
What would be the right reference?
Thanks
TB