my DataSet does not maintain State after Postback

B

Bruno Ferreira

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top