Quote:
How do I create button in c#asp.net in which it create auto increment number and flag is running along with that
First of all, simplify things by separating concerns.
Any GUI control interact with your app by calling code, it doesn't matter what do the code.
So your problem is "How do I create function in c#asp.net in which it create auto increment number and flag is running along with that", no matter who call the code.
Quote:
This is basically complaint register web page
Web page imply multiuser, and generating an "auto increment number" otherwise than "by server" is a bad idea, generating the number before needing it is also a bad idea.
Bad idea mean that sooner or later, you will end up with multiple users having same number.
SQL AUTO INCREMENT a Field[
^]
The general solution is to not generate the number before you really need it, and let the server handling details because every user refer to server.