我正在开发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>