if you use
<div id="yourdiv" runat="server"></div>yourdiv will become an object of HtmlGenericControl type, so if you are using code-behind, declare in your Page class (in C#, but it is easy to convert to VB.NET):protected HtmlGenericControl yourdiv;then in your code, you can doyourdiv.Attributes["style"]="color:red";
yourdive.InnerHtml = "<b>hello world</b>";
<div id="yourdiv" runat="server"></div>yourdiv will become an object of HtmlGenericControl type, so if you are using code-behind, declare in your Page class (in C#, but it is easy to convert to VB.NET):protected HtmlGenericControl yourdiv;then in your code, you can doyourdiv.Attributes["style"]="color:red";
yourdive.InnerHtml = "<b>hello world</b>";
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货