WIth aspx, there are UI part(.aspx) and code behind(.aspx.vb).
In Markup, there is some html element, like Table with ID='Tab1'
使用aspx,有UI部分(.aspx)和后面的代码(.aspx.vb)。在标记中,有一些html元素,如ID='Tab1'的表
How to got the html element Table in code behind to change its attributes?
如何在代码后面获取html元素表以更改其属性?
1 个解决方案
#1
1
Make the table accessible in code behind by assigning it id and making it runat="server"
通过分配它的id并使它运行在runat="server"中,使表在代码中可访问
<table id="tbl" runat="server" >....
#1
1
Make the table accessible in code behind by assigning it id and making it runat="server"
通过分配它的id并使它运行在runat="server"中,使表在代码中可访问
<table id="tbl" runat="server" >....