Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Thu Aug 13, 2015 8:14 pm


I could not figure out that how can i generate barcode (which stored in database for example rr12345678901) and display it on asp.net web form page. I added tools to toolbox but i dont have any idea for how to use it can you please help me?

Posts: 2
Joined: Wed Aug 12, 2015 9:19 pm

Fri Aug 14, 2015 3:10 am


Thanks for your inquiry.
1. Add the BarCodeControl to the form page.
2. Add a Button( or other control that you like ) to the form page.
3. You can set the properties of the barcode in the Button. Here is the code for your reference.
Code: Select all
protected void Button1_Click(object sender, EventArgs e)
            // Here you can get the data from database.
            string s = "rr12345678901";         
            BarCodeControl1.Data = s;

4. Now the barcode will display on asp.net web form page according to your settings.

Best Regards,

E-iceblue support team
User avatar

Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.BarCode