J
Josh Valino
Hi,
Is there anyway that I can hook into a getter and setter of a property for a
..Net control across my application? Specifically, what I'd like to do is
execute some code whenever a System.Web.UI.WebControls.TextBox.Text property
is set'd or get'd. I'm aware there are things I can do such as wrap this
control, but for political reasons, I need to try to come up with a solution
that will involve changing or adding as little code as possible.
I am using .Net 3.5, so if there was this kind of functionality added that
would allow this, as it's similar to extension methods, I'd be able to use
that.
Thanks
Is there anyway that I can hook into a getter and setter of a property for a
..Net control across my application? Specifically, what I'd like to do is
execute some code whenever a System.Web.UI.WebControls.TextBox.Text property
is set'd or get'd. I'm aware there are things I can do such as wrap this
control, but for political reasons, I need to try to come up with a solution
that will involve changing or adding as little code as possible.
I am using .Net 3.5, so if there was this kind of functionality added that
would allow this, as it's similar to extension methods, I'd be able to use
that.
Thanks