How to convert this Label to Div?_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:07:49
Original
1459 people have browsed it

There is a Table that is dynamically generated in the background of the page

tr = new TableRow();                   Label labId = new Label();labId.Text = dt.Rows[i]["Sort"].ToString();labId.ID = "lblId" + (i + 1).ToString();td = new TableCell();td.Controls.Add(labId);tr.Controls.Add(td);                   Label labTypeName = new Label();labTypeName.Text = dt.Rows[i]["TypeName"].ToString();labTypeName.ID = "lblTypeName" + (i + 1).ToString();labTypeName.Attributes.Add("width", "100px");                  td = new TableCell();td.Controls.Add(labTypeName);tr.Controls.Add(td);
Copy after login




How to convert labId, labTypeName from Label to Div?


Reply to discussion (solution)

Why convert it into a div? Then you might as well remove the label and add a div

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template