I am New to .net,I hope it would be great help for me I want auto generation of numbers in c#. Actually i have EmpCode with E and C followed by 3digit no. I have two text boxes. one box is for selecting E or C and another one for number which i want automatically generate like E001,E002