Click event not firing with custom control

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
 
T

Tim T

I think i'm having the same problem
hopefully someone will respond to my most recent post with good answers

Tim T
 
G

Guest

A work around I use now is to create a string that is
empty and assign a property to the class using it. This
way it ensure the control click events work and it doen't
interfere with the controls logic. Unfortunatly you will
have a control with an extra property that doesn't do
anything.

Zane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top