예제 #1
0
    protected void btnGenerate_Click(object sender, EventArgs e)
    {
        Image img = new Image();                                                 // instantiating the control

        img.Attributes["src"] = Barcode128.generateBarcode(txtCode.Text, false); // setting the path to the image
        plBarCode.Controls.Add(img);
    }