This is for a project to build an invoice.
I need to add data to an in memory table. I enter a line of data that includes two points where I do a post back. The first I enter an SKU in. I then get the description and price from a permanent SQL table. The next I enter a number and then compute the extended price.
The problem I have is I always loose everything but the current record.
I've checked and found that the datatable is reset each time. I define the datatable in the pageload sub. So I put in a flag to stop that. I was successful at that but now the table columns come up undefined. The appeared to have been defined on the first pass.
Anyhelp would be appreciated.
I need to add data to an in memory table. I enter a line of data that includes two points where I do a post back. The first I enter an SKU in. I then get the description and price from a permanent SQL table. The next I enter a number and then compute the extended price.
The problem I have is I always loose everything but the current record.
I've checked and found that the datatable is reset each time. I define the datatable in the pageload sub. So I put in a flag to stop that. I was successful at that but now the table columns come up undefined. The appeared to have been defined on the first pass.
Anyhelp would be appreciated.