R
Ratfish
Hi,
I'm trying to test whether an event handler is already assigned to a
TextBox's TextChanged event handler before I assgn it. When I use the
following code I get the "The event
'System.Web.UI.WebControls.TextBox.TextChanged' can only appear on the
left hand side of += or -=" error.
if (tbxQuantity.TextChanged == null)
tbxQuantity.TextChanged += QuantityTextChanged;
I don't want to assign the even handler if it's already been done.
Please help.
Aaron
I'm trying to test whether an event handler is already assigned to a
TextBox's TextChanged event handler before I assgn it. When I use the
following code I get the "The event
'System.Web.UI.WebControls.TextBox.TextChanged' can only appear on the
left hand side of += or -=" error.
if (tbxQuantity.TextChanged == null)
tbxQuantity.TextChanged += QuantityTextChanged;
I don't want to assign the even handler if it's already been done.
Please help.
Aaron