Neodynamic Barcode Professional 2.0 for ASP.NET (WebControl)
Microsoft .NET Framework (any version)
Microsoft Visual Studio .NET (any version)
You can create barcode controls at runtime. In the following sample we're going to create a simple ASP.NET WebForm that shows this.
In the sample, we'll create a barcode control in the Page's Load event as well as we'll create a barcode control as a response to a click event of a Button in the WebForm.
Follow these steps to create a barcode control in the Page's Load event:
'Create an instance of Barcode Professional
Dim bcp As New BarcodeProfessional
'Set some properties
bcp.Code = "Created at RUNTIME!"
bcp.Symbology = Symbology.Code128
bcp.ForeColor = Color.RoyalBlue
bcp.Font.Bold = True
'Add the Barcode control
PlaceHolder1.Controls.Add(bcp)
'Create an instance of Barcode Professional
Dim bcp As New BarcodeProfessional
'Set some properties
bcp.Code = "Created at RUNTIME!"
bcp.Symbology = Symbology.Code128
bcp.ForeColor = Color.RoyalBlue
bcp.Font.Bold = True
'Add the Barcode control
PlaceHolder1.Controls.Add(bcp)
That's it. Build the ASP.NET Web Application and run it.
Follow these steps to create a barcode control in a Button's Click event:
'Serve barcode requests
'This call is required when the control is created
'in a PostBack stage
BarcodeProfessional.ProcessBarcodeRequest()
//Serve barcode requests
//This call is required when the control is created
//in a PostBack stage
BarcodeProfessional.ProcessBarcodeRequest();
'Create an instance of Barcode Professional
Dim bcp As New BarcodeProfessional
'Set some properties
bcp.Code = "Created at RUNTIME TOO!"
bcp.Symbology = Symbology.Code128
bcp.ForeColor = Color.Red
bcp.Font.Bold = True
'Add the Barcode control
PlaceHolder1.Controls.Add(bcp)
//Create an instance of Barcode Professional
BarcodeProfessional bcp = new BarcodeProfessional();
//Set some properties
bcp.Code = "Created at RUNTIME TOO!";
bcp.Symbology = Symbology.Code128;
bcp.ForeColor = Color.Red;
bcp.Font.Bold = true;
//Add the Barcode control
PlaceHolder1.Controls.Add(bcp);
That's it. Build the ASP.NET Web Application and run it.
We provide best-in-class customer service and support directly from members of our dev team! If we are available when you contact us, you will get a response in few minutes; otherwise the maximum turnaround is 24hs in most cases.