Good Afternoon team, I am looking for a bit of guidance please, I am a newbie so I appreciate there may be better ways to do what I am doing. I have a basic web application using VS2008 and with a SQL Backend. The database is a relational database and all tables have primary keys. One table Invoice has a PK which is InvoiceID within SQL this is set to Autonumber (identity).
What I need is for other column called InvoiceNumber to be updated to equal the InvoiceID + 20000 this needs to be an event with ASP after I have clicked insert. I have designed the insert page for this to use a SQLDatsource and a Details View with VS2008. Also what I would like is for this number or the InvoiceID to be held in memory so that when I use a redirect from this same page to update another table InvoiceItem this number automatically links the items with the Invoice number or ID could you advise best ways of doing the 2 tasks above please.
What I need is for other column called InvoiceNumber to be updated to equal the InvoiceID + 20000 this needs to be an event with ASP after I have clicked insert. I have designed the insert page for this to use a SQLDatsource and a Details View with VS2008. Also what I would like is for this number or the InvoiceID to be held in memory so that when I use a redirect from this same page to update another table InvoiceItem this number automatically links the items with the Invoice number or ID could you advise best ways of doing the 2 tasks above please.