my DataSet does not maintain State after Postback

Discussion in 'ASP .Net' started by Bruno Ferreira, Nov 6, 2003.

  1. Hi! Can someone help me?
    I have a Webform to register Users Traveller Expenses.
    To do this I created inside the webform a Custom DataSet,
    with a Custom DataTable (with some columns) with receives
    Custom DataRows.

    In my webform I let the User Fill the textboxes and when
    he push the add button a row is added to my DataSet and
    finaly a Bind him to a DataGrid.

    I found a unexpected behavior... After the postback my
    dataset never exists and a new one is always created.
    I use the If "Page.IsPostBack" to avoid this behavior but
    without success...

    Does someone know a better solution to do this???

    Thank's a lot for the help

    BF
     
    Bruno Ferreira, Nov 6, 2003
    #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. chak
    Replies:
    1
    Views:
    592
  2. Keithb
    Replies:
    0
    Views:
    996
    Keithb
    Oct 28, 2006
  3. rockdale

    Postback does not maintain sort direction Image?

    rockdale, Jun 8, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    405
    rockdale
    Jun 21, 2006
  4. chak

    Listbox on placeholder does not maintain state ?

    chak, Aug 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    289
  5. AR

    treview does not maintain state

    AR, May 8, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    135
    Prakash V
    Jun 7, 2006
Loading...

Share This Page