Z
Zane
Hi all,
I have created a custom control library in Visual
Studio .NET 2003 using .NET framework 1.1 on Server 2003.
The problem is when I promatically add a click event to a
button within a custom web control it won't work unless
it has a property attached to the class (IE like text for
the button and that also the property is using the method
EnsureChildControl()).
When you go to internet explorer and click the button it
doesn't work. But it you have the property in there with
the EnsureChildControl method it works.
This isn't one off thing either, as it has happened to me
many times with other configurations. Is this a bug??
Because I'm ready to destroy the PC.
Any ideas??
thanks
Zane
I have created a custom control library in Visual
Studio .NET 2003 using .NET framework 1.1 on Server 2003.
The problem is when I promatically add a click event to a
button within a custom web control it won't work unless
it has a property attached to the class (IE like text for
the button and that also the property is using the method
EnsureChildControl()).
When you go to internet explorer and click the button it
doesn't work. But it you have the property in there with
the EnsureChildControl method it works.
This isn't one off thing either, as it has happened to me
many times with other configurations. Is this a bug??
Because I'm ready to destroy the PC.
Any ideas??
thanks
Zane