Data in Datalist not refreshing

Discussion in 'ASP .Net Web Controls' started by halligas@gmail.com, Jun 7, 2007.

  1. Guest

    Strange problem in a complex webform, but let me try to boil it down
    to a simple (heh) question.

    I have a datalist that is bound to a sqldatasource. In the header of
    this datalist is a formview in insert mode bound to the same
    sqldatasource.

    If I enter data for a new record in the formview and click the insert
    button, I have it properly adding the data to the sql table and
    refreshing the datalist. The new entry correctly shows up in the
    datalist.

    However, if I navigate away from the page and them come back to look
    at the same list, I see only the items that were in the list PRIOR to
    my last insert(s). F5 usually (always?) will force the page to
    refresh and all the data will show up.

    So, is something saved in the viewstate that I am reverting to when I
    ago away and back to the page?
     
    , Jun 7, 2007
    #1
    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?Q2hyaXMgRmluaw==?=

    RE: Refreshing DataList through user control

    =?Utf-8?B?Q2hyaXMgRmluaw==?=, Sep 3, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    500
    =?Utf-8?B?Q2hyaXMgRmluaw==?=
    Sep 3, 2004
  2. Nevyn Twyll
    Replies:
    8
    Views:
    1,916
  3. H5N1
    Replies:
    0
    Views:
    2,739
  4. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 4, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    470
    =?Utf-8?B?Y2xpY2tvbg==?=
    Aug 4, 2006
  5. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 3, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    194
    Harlan Messinger
    Aug 3, 2006
Loading...

Share This Page