Reloading form textboxes after table insert

wings9697

Member
Joined
Aug 27, 2007
Messages
23
Location
Washington, DC
Programming Experience
10+
Hi. I have a form that will be used to capture the pieces of evidence seized at a crime scene. It has a Case Number field, a Case Agent field, a Case Item Name field, a Case Item Description Box, a Unit ID Number field, and a field for the Item Number.

The Case Number field, Case Agent field, and Unit ID Number field are currently stored in session variables and populated on the form during the initial Page_Load. The Item Number is a incremented number for each item added under that particualar Case Number.

The problem is these values are there for the first run. As soon as I submit the first record, all the fields get blanked, and the values don't get reloaded on the form. The sessoion variables are still in memory and the values get loaded into the new record, but they don't show in their corresponding textboxes. The idea was to have the fields that are the same for all items in the group be pre-populated in the form, so my users only had to type in the Item Name and a Item Description for each item without having to leave the form. I am doing this with a template form, and SQLDataSource control writing the data to the table.

Can someone point me in the right direction of the vb event I need to locate me recurring parameters in? I thought there was an "After Inserting" event, but apparently, there isn't...

Any help would be greatly appreciated.....
 

Latest posts

Back
Top