1 href标签转化为 server标签
2 在后台
this.A1.Attributes["for"] = "12311.gif";
this.A1.Attributes["href"] = "http://wuliu.sinvo.com";
a1为控件id, for,href为控件属性,通过后台写入
自定义标签:
<aa runat="server" for="ddd" id="hello" >1111</aa></div>
在后台: this.hello.Attributes["for"] = "this is test";
通过这种方式,方便向标签写入或读取.