UserControl loses state in TemplateField

Joined
Nov 12, 2007
Messages
2
Reaction score
0
Hi,

I have a UserControl with some ListBoxes on it. It works fine when called from a page unless I embed it in a TemplateField on a DetailsView. It loads properly but the SelectedIndex gets reset to -1 when I press a button to post. How can I save the state of the ListBoxes in the UserControl.

Thanks,
Jerry
 

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
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top