Hi All,
I am using a DetailsView Control to get the data from a SQL Server table. I am using all the three operations (EDIT,DELETE,NEW) on the database table through DetailsView.
The primary key in the table is EmployeeID. My requirement is whenever user click on NEW, I want to get the maximum employee ID from table, and I want to increment it by 1. I would like to display this employee ID , whenever user wants to insert a new record. And also I want to make this text box read only. Where I have to put the code to do this task?
How can I achieve this?
Thanks & Happy new year to all of you
Sruvee
I am using a DetailsView Control to get the data from a SQL Server table. I am using all the three operations (EDIT,DELETE,NEW) on the database table through DetailsView.
The primary key in the table is EmployeeID. My requirement is whenever user click on NEW, I want to get the maximum employee ID from table, and I want to increment it by 1. I would like to display this employee ID , whenever user wants to insert a new record. And also I want to make this text box read only. Where I have to put the code to do this task?
How can I achieve this?
Thanks & Happy new year to all of you
Sruvee