zoukankan      html  css  js  c++  java
  • 怎么遍历页面上的Input控件

        Dim j As Integer
            
    For j = 0 To (Me.Controls.Count) - 1
                
    If Me.Controls(j).GetType().ToString() = "System.Web.UI.HtmlControls.HtmlForm" Then
                    
    Dim i As Integer
                    
    For i = 0 To (Me.Controls(j).Controls.Count) - 1

                        
    If TypeOf Me.Controls(j).Controls(i) Is HtmlInputText Then
                            
    Dim tb As HtmlInputText = CType(Me.Controls(j).Controls(i), HtmlInputText)
                            tb.Value 
    = "888"
                        
    End If


                    
    Next i
                
    End If
            
    Next j
  • 相关阅读:
    css之布局
    css之浮动
    白扯之聊聊我们的情怀
    Vue之指令
    Vue之vue.js声明式渲染
    AJAX经常遇到的那些问题
    HTTP之cookie技术
    正则表达式资料
    require.js资料
    AMD 和 CMD 的区别
  • 原文地址:https://www.cnblogs.com/LCX/p/677255.html
Copyright © 2011-2022 走看看