gtjr921
Programmer
- Aug 30, 2006
- 115
ASP.NET 2.0 and SQL 2005
I have a stored procedure that is the datasource for a form.
This form allows new employees to be entered etc.
Once this data is inserted I want to redirect the user to that employees page based on the ID. I know how to do something like response.redirect(webpage.aspx?ID=1234)
What i don't know how to do is to get the scope identity or the newest Employee id (I don't think i can get the scopeID into ASP.net)
I guess I could do something like select top 1 ID from employee order by desc but that is probably not the best way.
I have a stored procedure that is the datasource for a form.
This form allows new employees to be entered etc.
Once this data is inserted I want to redirect the user to that employees page based on the ID. I know how to do something like response.redirect(webpage.aspx?ID=1234)
What i don't know how to do is to get the scope identity or the newest Employee id (I don't think i can get the scopeID into ASP.net)
I guess I could do something like select top 1 ID from employee order by desc but that is probably not the best way.