Hi,
I want to build barcode control using c# not in HTML , I used that code but I have problem That barcode appear as text like attached photo
how can I solve this problem
Thanks ..
RadBarcode mybarcode = new RadBarcode();
mybarcode.ID = "barcode1";
mybarcode.Text = "123";
mybarcode.Type = BarcodeType.QRCode;
StringBuilder sbHtmlContent = new StringBuilder();
StringWriter objStringWriter = new StringWriter(sbHtmlContent);
HtmlTextWriter objHtmlTextWriter = new HtmlTextWriter(objStringWriter);
mybarcode.RenderControl(objHtmlTextWriter);
var strTextBoxHtml = sbHtmlContent.ToString();
Literal1.Text += strTextBoxHtml;
I want to build barcode control using c# not in HTML , I used that code but I have problem That barcode appear as text like attached photo
how can I solve this problem
Thanks ..
RadBarcode mybarcode = new RadBarcode();
mybarcode.ID = "barcode1";
mybarcode.Text = "123";
mybarcode.Type = BarcodeType.QRCode;
StringBuilder sbHtmlContent = new StringBuilder();
StringWriter objStringWriter = new StringWriter(sbHtmlContent);
HtmlTextWriter objHtmlTextWriter = new HtmlTextWriter(objStringWriter);
mybarcode.RenderControl(objHtmlTextWriter);
var strTextBoxHtml = sbHtmlContent.ToString();
Literal1.Text += strTextBoxHtml;