Composite controls

A

Aravind Datla

I have a composite control that is being loaded into the
web page. It has a dropdown list and based on the value
selected i call another composite control dynamically
using reflection and it is also being loaded. But the
problem is the events for this new one are not being
called, like onSelectChange, onTextChange etc even when
the values are being changed.

I would appreciate if you can help me with the problem.

Thanks
Aravind Datla
 
K

Ken Cox [Microsoft MVP]

Are you remembering to add the event handler dynamically using AddHandler?

"The AddHandler statement is similar to the Handles clause in that both allow
you to specify an event handler that will handle an event. However, AddHandler
along with RemoveHandler provide greater flexibility than the Handles clause,
allowing you to dynamically add, remove, and change the error handler
associated with an event. And unlike Handles, AddHandler allows you to
associate multiple event handlers with a single event."

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vaconaddonremoveon.asp

--

Important: Patch Windows *beyond* Blaster.
http://www.microsoft.com/technet/security/bulletin/MS03-039.asp


I have a composite control that is being loaded into the
web page. It has a dropdown list and based on the value
selected i call another composite control dynamically
using reflection and it is also being loaded. But the
problem is the events for this new one are not being
called, like onSelectChange, onTextChange etc even when
the values are being changed.

I would appreciate if you can help me with the problem.

Thanks
Aravind Datla
 

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

Forum statistics

Threads
474,077
Messages
2,570,567
Members
47,203
Latest member
EmmaSwank1

Latest Threads

Top