Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 12, 2015 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/8aad2be02b89826d89c8 to your computer and use it in GitHub Desktop.
Save bjoerntx/8aad2be02b89826d89c8 to your computer and use it in GitHub Desktop.
protected void Page_Load(object sender, EventArgs e)
{
// set the barcode text
string sBarcodeText = DateTime.Now.Ticks.ToString();
// set the URL to the ASPX page that returns the image data
Barcode1.ImageUrl = "CreateBarcode.aspx?text=" + sBarcodeText;
lblBarcodeText.Text = sBarcodeText;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment