Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DetailsView problem

Reply
Thread Tools

DetailsView problem

 
 
chenhong
Guest
Posts: n/a
 
      07-24-2007
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


 
Reply With Quote
 
 
 
 
Brandon Gano
Guest
Posts: n/a
 
      07-24-2007
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?


"chenhong" <> wrote in message
news:ePhv%...
>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
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DetailsView template field problem =?Utf-8?B?UmFt?= ASP .Net 3 09-19-2008 07:30 AM
Detailsview Problem Seth Bourne ASP .Net 0 10-05-2006 03:41 PM
Problem in inserting data using DetailsView le0 ASP .Net 0 09-25-2006 12:37 AM
DetailsView Problem Maury ASP .Net 2 03-22-2006 01:42 PM
DetailsView - Changing to Insert Mode (Not By Using the Insert Button In the DetailsView Control) Feege ASP .Net Web Controls 0 12-20-2005 12:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57