HOW GET ID OF LAST INSERTED RECORD
Introduction
This small article is based on a situation where you need the ID of your latest inserted record. What does that mean is, on every insert you want to get the ID of the currently inserted record by which you can know that record inserted successfully or not, and can use its ID.
There are several ways to achieve this.
We will use output parameter and in our c# code behind we will use.
SqlParameter with Direction property
Here is our procedure

Now this is our c# code behind (.cs) file where we getting @getID value


Vikas AhlawatPosted Jun 5, 2012, 12:55 PM
@Anil Thnx for your reply :)
Anil KumarPosted Jun 5, 2012, 12:33 PM
Go into your "My Account" which can be found at right top corner. Then click on "Blogs (n)". And then go to Approved tab. You will find all your blog with 'Edit' as well 'Delete' option.
Vikas AhlawatPosted Jun 5, 2012, 10:56 AM
Ok sir thnx for inform., can you tell me the edit option, I not able to find any edit delete option..
Mahesh ChandPosted Jun 5, 2012, 10:19 AM
Please fix the formatting of the background and font etc. Let's keep the site clean. Thanks!