hi

In my database i put id column as identity(the database is
incremented by it self only)what i want is if i enter a data
in my website, id will come automatically can u pl z tell me
the code
thax in advance



hi In my database i put id column as identity(the database is incremented by it self only)what i..

Answer / swaroop

What I understood from your question is you want to display
the latest value from the ID column, in your web page.

Write code in the page load event such to fetch the latest
value from the ID column, and display it in your page.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

My switch statement works differently! Why?

0 Answers  


how to retrive a TextBox value in to Sql database using C# windows form application coding

3 Answers  


What is default value of bool in c#?

0 Answers  


Difference between value and reference type.

0 Answers  


Which function is the entry point for a DLL in MS Windows 3.1?

0 Answers   3i Infotech,






What is the purpose of constructor in c#?

0 Answers  


What are partial classes and use of partial classes?

0 Answers   QuestPond,


What is the and operator in c#?

0 Answers  


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

0 Answers   Siebel,


what is the syntax to inherit from a class in c#?

0 Answers   Siebel Systems,


Why is it a bad idea to throw your own exceptions?

4 Answers  


What is the state of Garbage Collection after dispose() call info C# code?

4 Answers  


Categories