DetailsView problem

C

chenhong

I added a TemplateField to DetailsViews control,
then added an empty DropDownList to the TemplateField.
I dynamiclly populated the list when the page run.
But when the page postback, the list is empty.
Both the DetailsViews's and DropDownList's EnableViewState
set to true.

how can i retain the list's content without repopulate it
everytime the page postback

TIA
 
B

Brandon Gano

Are you populating the list manually in the Page_Load, or are you using data
binding? Could you post the relevant code from your aspx and code behind
files?
 

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,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top