Dear Question Viewers,
I work on project when I Scan product by barCode Scanner then page refresh and clear all fields ,
I want that whenever I Scan Product by Barcode scanner then by default hidden field get value from bar without refresh page and fill all fields which I want so kindly guide me and refer me easy solution
#Jquery,ajax,mvc.net,sqlserver

Leon DRank #851 · 2.6K reputationPosted Mar 26, 2019, 4:27 PM EDT
Marvin ReidRank #1,963 · 746 reputationPosted Aug 28, 2023, 5:58 PM EDT
You can use the BarcodeEngine to parse the barcode. You can then use the BarcodeData returned by either setting the values or getting the data to populate fields.
BarcodeEngine barcodeEngineInstance = new BarcodeEngine(); BarcodeData[] dataArray = barcodeEngineInstance.Reader.ReadBarcodes(image, LeadRect.Empty, 0, null); //read barcode for (int i = 0; i < dataArray.Length; i++) { BarcodeData data = dataArray[i]; Console.WriteLine("Data: {0}", data.Value); //get and set string data }https://www.leadtools.com/help/sdk/tutorials/dotnet-console-detect-and-extract-barcodes.html
https://www.leadtools.com/help/sdk/v22/dh/ba/barcodedata-value.html