Scanned value(using scanner) in the textbox

Posted by Geetha on Stack Overflow See other posts from Stack Overflow or by Geetha
Published on 2010-05-24T06:41:36Z Indexed on 2010/05/24 8:11 UTC
Read the original article Hit count: 273

Hi All,

I am using Scanner(basic model) to scan the barcode. Scanned barcode will be captured in a textbox. In txtBarcode_TextChanged event i am getting the barcode to access.

Problem:

If i clicked the scanner more than once, the barcode gets append with the previous value.

Code:

 protected void txtBarcode_TextChanged(object sender, EventArgs e)
    {
        string txt = this.txtBarcode.Text;
        this.txtBarcode.Text = string.Empty;
    }

© Stack Overflow or respective owner

Related posts about c#

Related posts about JavaScript