Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > my DataSet does not maintain State after Postback

Thread Tools

my DataSet does not maintain State after Postback

Bruno Ferreira
Posts: n/a

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


Reply With Quote

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
Maintain scroll position on postback does not work when files are deployed to remote server Keithb ASP .Net 0 10-28-2006 10:09 PM
Postback does not maintain sort direction Image? rockdale ASP .Net Datagrid Control 4 06-21-2006 06:30 PM
treview does not maintain state AR ASP .Net Web Controls 1 06-07-2006 12:41 PM
Listcontrol on placeholder does not maintain state chak ASP .Net 1 08-23-2003 09:40 PM
Listbox on placeholder does not maintain state ? chak ASP .Net Web Controls 1 08-15-2003 01:50 AM