OnTextChanged Event for a label control

  • Thread starter Thread starter Sue
  • Start date Start date
S

Sue

Hello

Is there an equivalent of a OnTextChangedEvent for a asp: label
control in asp.Net 2.0. Every time the text of a label changes, I
want
the items in a listbox control cleared.

Tried doing as textbox and gave the ReadOnly="True" and border=0 to
mimic a label control, but since the Readonly is set to true, the
"OnTextChanged" event does not get fired.


TIA
Sue..
 
There is no direct equivalent to my knowledge, but after you change the label
in code couldn't you just fire your own funtion to perform your actions. If
not have you tried using the textbox control disabled and change the default
disabled colors to mimic a label? I havne't tested it, but it's a thought.
 
Back
Top