12
Reply

Fetch autoincremented value to textbox from database

Sweety

Sweety

Sep 28 2011 3:13 AM
10.7k
I have created form empdetails where employee will enter his details like name,address etc the empid will be generated automatically in my case empid starts with 0001 i have created table with empid column made it as identity
when user clicks on the this form i have textbox empid this textbox should display this auto genereated id.

How can i do that i'm using sql server 2005 in asp.net using c#

Can any1 help me on this.

Upload Source Code  Select only zip and rar file.
Answers (12)