Hello friends,
I m using ASP.NET with C# 2005 and SQL SERVER 2005 for the ASP.Net Website.
I m using sqldatasource to connect and retrieve the data from database and then it displays the data in the gridview on the button click event.I have created the stored procedure for insert and select query.
I Want to display the autoincrement id on the label or textbox control on the form and also on the click event of the button it should display in the gridview.
I m able to get the data thru database and display it in the gridview but i don't know how'z it possible to see the id on the label or textbox control of the form ??
The form has many other controls also when it clicks on submit then on that click event it should show me the data on the control which should be retrieve from database..
On view click event it shows the contains in gridview at that time it show the id incremented n all data.
Pls help me how can i see the id on the label..
Thanxs in advance.