Hi,
In a winform I have a textbox called userid and next to it is a button called auto generate. The thing is on clicking this button auto generate it should generate a random number and should also validate it against the database(for sample of 10 entries to make sure that no duplicate entries are present). The random number should be alphanumeric or numeric