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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

When To use HashTable In C#

752


Is c# scripting language?

681


How do you declare a variable in c#?

724


List the 5 different access modifiers in c#?

695


What is difference between the "throw" and "throw ex" in .net?

681


Can hashset contain duplicates c#?

667


What is the use of getcommandlineargs() method in c#.net?

727


What are Types of assemblies that can be created in dotnet

772


What is the use of static in c#?

670


What is the diff between System.String and System.Text.StringBuilder classes?

744


What is parallel foreach c#?

684


What does f mean in c#?

682


Which compiler switch creates an xml file from xml comments in the files in an assembly?

791


Is int a struct in c#?

684


What is datatable and dataset in c#?

686