hi frnds
i had got a problem,
i want to increase the serial number automatically when page is loaded and it will be inserted into the database......
pls reply me answer....
here i use vb.net coding.........

The easiast way to increment a number by 1 is to do it directly in the SQL-query.

For example: UPDATE table1 SET serialnumber = serialnumber + 1 WHERE id = <id>

Which database ur using?if SQL05 thn simply change the Identity specification property of the column to yes..it will automatically increment the value in that column.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.