Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 244.4k

save multiple value on label in table format .net c#

Aug 22 2016 6:38 AM
how to show label text in table format 
 
Label2.Text += "<table style='margin-top:10px;'><tr><td>Product Name:</td> <td>Quantity:</td><td></tr><tr><td>" + lbl_pro_nm.Text + "</td><td>" + int.Parse(drop_quantity.SelectedValue.ToString()) + "</td></tr></table>";
 
this is return table like: this is  repeat column
 
products name:       quantity
xyz                             1
 
 
products name:   quantity
xyer                       1
 
 
 
 
 
but i want
 
 product name   quantity
 xyz                         1
 xyer                        1
 ert                          1
 
 
 

Answers (4)