Forums - C# Corner

Forum guidelines
Devendra  Kumar

Devendra Kumar

  • 1.2k
  • 501
  • 61.3k

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)


Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now