如上所说,请大家帮忙,谢谢!!!

解决方案 »

  1.   

    var dom = document.all;
      

  2.   

    foreach(WebControl webcontrol in this.Page.Controls)
    {}
      

  3.   

    我用的是vb啊,没有这些关键字,是不是要引入一些namespace啊?
      

  4.   

    啊?
    For Each(WebControl webcontrol in this.Page.Controls)
    {}
      

  5.   

    不好意思写错了。
    Dim webcontrol As WebControl 
    For Each webcontrol in this.Page.Controls
      

  6.   

    foreach(WebControl webcontrol in this.Page.Controls)
    {}
    foreach(WebControl webcontrol in this.Page.Control)
    {}
      

  7.   

    解决了,谢谢大家!问题出在要把textbox的父容器找出,再进行处理。