大佬教程收集整理的这篇文章主要介绍了html – 隐藏在vb.net代码端,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
For Each row As HtmlTableRow In tab_a1.Rows If row.ID = "a1" Then For Each cell As HtmlTableCell In row.Cells cell.Visible = (cell.ID = "a1") Next ElseIf row.ID = "b1" Then For Each cell As HtmlTableCell In row.Cells cell.Visible = (cell.ID = "b1") Next Else row.Visible = false End If Next
标记:
<div ID="myDiv" runat="server">Test DIV</div>
VB:
@H_566_3@myDiv.Visible = false 'Hide the div. myDiv.Visible = True 'Show the div.您可以使用控件集合循环访问子控件:
For Each child As Control In myDiv.Controls If TypeOf child Is HtmlControl Then Dim typedChild As HtmlControl = CType(child,HtmlControl) 'Search grandchildren,toggle visibility,etc. End If Next
以上是大佬教程为你收集整理的html – 隐藏在vb.net代码端全部内容,希望文章能够帮你解决html – 隐藏在vb.net代码端所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。