DetailsView problem

  • Thread starter Thread starter chenhong
  • Start date Start date
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
 
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?
 
Back
Top