我正在開發Web應用程序。因爲我使用這麼多Div來打開彈出窗口。現在我的要求是爲該彈出窗口創建動態Div,並且該窗口的所有內容都來自數據庫。在ASP.Net中創建動態div標記
那麼誰能告訴我如何以編程方式動態創建Div?對於股利
我的示例代碼..
<div id="Popup" runat="server" class="hidden-content">
<table width="auto">
<tr>
<td style="font-size: 20px; font-weight: bold; text-align: center;">
<p>
</p>
<b>Diabetes</b>
</td>
</tr>
<tr>
<td style="font-size: 15px; text-align: left;">
<p>
Type I diabetes (also known as juvenile diabetes) is the less common form of diabetes.
It usually is diagnosed during childhood or teen years and requires treatment with
insulin.
</p>
</td>
</tr>
</table>
</div>