LoadPostData and postCollection not returning the updated values for DropDownLists

N

Nathan Sokalski

I have a custom control that inherits CompositeControl implements
IPostBackDataHandler and ICallbackEventHandler. In the LoadPostData
function, I attempt to use the postCollection parameter to get the data
posted by the child controls created in CreateChildControls. In the
PreRender event, I add onchange attributes to the DropDownLists with a value
created using the Page.ClientScript.GetCallbackEventReference. When one of
my DropDownLists triggers this callback and the LoadPostData function is
called, the postCollection parameter does not have the newly selected value
for the DropDownList. What can I do to get the newly selected value of the
DropDownList? Any help would be appreciated. Thanks.
 

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,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top