简体   繁体   中英

Generate labels and textbox in asp.net using c#

Labels and textbox are dynamically generating in a asp.net form and the records are displaying in labels from sql database, but all records are displaying in one line(there is no break line), I need every record should be displayed in each label with new line. enter image description here I would strongly appreciate it if you could reply me back.

here is the screenshot of the code.

Add a <br /> to separate lines.

Or if your data generally conforms to a tabular format, use a <table> structure to arrange fields.

将结构放入<table> ,将每一行放入<tr>并将各个标签放入<td>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM