Last post Nov 16, 2017 06:38 AM by Eric Du
Nov 15, 2017 03:21 AM|asp.ambur|LINK
I have one textbox in that if i scan barcode print data in Textbox1 like this for example :B123
Now once any data print in textbox it should postbck to fetech data of given input
how to set postback once data print in textbox..
Nov 16, 2017 06:38 AM|Eric Du|LINK
According to your description, i think you want to select data through input text value, i think you could get the input value in read method directly, then execute select operate.
About how to read BarCode, please download this DLL from this site(http://www.onbarcode.com/tutorial/net-barcode-reader.html) then add reference to your project.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
// Add reference in code behind.
protected void Page_Load(object sender, EventArgs e)
string value = ReadBarcodeFromFile(@"C:\Users\duxin\Desktop\New folder\WebApplication1\WebApplication1\CODE39_2.png");
TextBox1.Text = value.ToString();
//check if the textbox1 has value, then select data from the database
private String ReadBarcodeFromFile(string _Filepath)
String barcodes = BarcodeScanner.Scan(_Filepath, BarcodeType.Code39);