What is the ASP.NET method that retrieves the lastly inserted primary key?
Posted on 2013-11-12
I want to use this function:
It creates a record in the User_Profile table and in the webpages_Membership.
But I also need to create a record in another table using the id recently inserted.
How do I do this?
But it doesn’t apply here because I don’t have access to the procedure of WebSecurity.CreateUserAndAccount()
I remember seeing a page of ASP.NET methods on the ASP.NET website's learning section, in which one method allows me to retrieve the last inserted ID, but I can’t find it.
Anyone know what method it is that does this? Or an alternative way?