0

WIth aspx, there are UI part(.aspx) and code behind(.aspx.vb).
In Markup, there is some html element, like Table with ID='Tab1'

How to got the html element Table in code behind to change its attributes?

4

1 回答 1

1

通过为其分配 id 并使其 runat="server" 使表在后面的代码中可访问

<table id="tbl" runat="server" >....
于 2012-09-19T15:16:26.953 回答