4
Answers

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

Devendra  Kumar

Devendra Kumar

8y
403
1
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)