how to form a 3 digit code after a user enters some value in a textbox asp.net C#
<p>I want to first form a 3-digit code once a user enters some input in a textbox.</p>

<p>I have a database table that has the text value that is to be entered in a text box for these text values there is corresponding numeric value which ranges from 3-999.</p>

<p>suppose user enters 'asd' and corresponding value in the database table is 9 (<strong>both 'asd' and '9'should be compared in the database table</strong>) than i want a 3-digit number to be formed as '009'.</p>

<p>Similarly there are other controls such as DropDownList and other textboxes from which the user input must be read and converted to a particular numeric code and thus finally forming a 14 digit code.</p>

<p>How can i achieve this. I want to know the way i should proceed with this. I am very new to programming.   </p>
