Auto generate count in asp.net 2.0 using vb?

CSM

New member
Hi guys,
I am handling asp.net code behind vb. I have a doubt. for ex: i have a customers table in database which contains fields like customer code customer name, cust.addr etc..
customer code contains - C00001,C00002,C00003,C00004,C00005
if i need add new customer in that table using gridview how it will generate the code as C00006..
ie...i need to know the Customer code +1...please give me the exact code for that using girdview in asp.net code behind vb..
awaiting for ur reply...
 
Back
Top