DetailsView problem

Discussion in 'ASP .Net' started by chenhong, Jul 24, 2007.

  1. chenhong

    chenhong Guest

    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
     
    chenhong, Jul 24, 2007
    #1
    1. Advertising

  2. chenhong

    Brandon Gano Guest

    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
    >
    >
     
    Brandon Gano, Jul 24, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UmFt?=

    DetailsView template field problem

    =?Utf-8?B?UmFt?=, Dec 1, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    6,603
    Supraman
    Sep 19, 2008
  2. Maury

    DetailsView Problem

    Maury, Mar 21, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    436
    Maury
    Mar 22, 2006
  3. le0
    Replies:
    0
    Views:
    593
  4. Seth Bourne

    Detailsview Problem

    Seth Bourne, Oct 5, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    282
    Seth Bourne
    Oct 5, 2006
  5. Feege
    Replies:
    0
    Views:
    463
    Feege
    Dec 20, 2005
Loading...

Share This Page