Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select and update in single query

Status
Not open for further replies.

SIMONI

IS-IT--Management
Aug 31, 2004
47
AU
Hi All,
I trying to update a record after a select statement in an ASP.NET 2 page, however i can't get the update command work when the page is load.

The only thing i can think of is running the UPDATE with the select statement.

Is it possible?
P.S
I'm using an access DB.

Thanks,
Simon
 
Thanks,
How do i make it run when the page is load?

Thanks
 
Thanks

Ok, I inserted the command into the update command and set it up as StoredProcedure.
However when the page loads the filed in the table is not updating.

I think i miss the part that makes the update command fire.
Do you know how do i make it fire at the same time that i use the select statement ?

Sorry to be a pain but i upgrading my site from ASP to ASP.NET and everything is new for me at the moment.

Thanks,
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top