Click here to Skip to main content
15,905,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
I use scanner for read data in barcode.
I only do when i read data by scanner it enter in textbox but when length of character 16 & 15 in data which enter in textbox are automatically store in database.
Is possible it done by textbox_changed event?
Give me other option.
Posted

yes.... use AutoPostBack="True" attribute in TextBox tag and then code on change event....
 
Share this answer
 
v2
C#
protected void txtBox1_TextChanged(object sender, EventArgs e)
   {
    if (txtBox1.Text.Length==15 || txtBox1.text.Length==16)
     {
       //do your algorithm here
     }
   }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900