简体   繁体   中英

how to get html control in VB code behind for aspx?

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?

通过分配表ID并将其设置为runat =“ server”,从而使表可在后面的代码中访问

<table id="tbl" runat="server" >....

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM