网页 不是 写vb程序
要这么写
document.all.imgForChange.style.visibility="visible"或者"hidde"

解决方案 »

  1.   

    document.all.imgForChange.style.visibility="visible"或者"hidde"应该是正确的。
      

  2.   


    <div style="display=<%=变量%>">你的控件</div>
      

  3.   

    if(Session()!="show")
    { Response.Write("<script>document.all.imgForChange.style.visible='false';</script>"); Response.Write("<script>document.all.imgForChange.style.display='none';</script>"); Response.Write("<script>document.all.imgForChange.style.visibility=''hidden'';</script>");
    }
      Response.write改为Page.RegisterStartupScript("right","<script>document.all.imgForChange.style.visible='false';</script>")
      

  4.   

    按我以前的写法,网页上有错误,没有达到效果,按fly_miss(思念)的改法,网页上没有错误了,错误指的是在最下面的状态条上
      

  5.   

    可以用<Panel>控件,把控件写在板里面,这样就可以隐藏板来实现隐藏控件的功能了!
      

  6.   

    if(Session()!="show")
    { Response.Write("<script>document.all.imgForChange.style.visibility='hidden';</script>");
    ....
    }
      

  7.   

    private void Page_Load(object sender, System.EventArgs e)
    {
    Page.RegisterStartupScript("_key","<script>function window.onload() {document.all('imgForChange').style.visibility='hidden';}</script>");
    }
      

  8.   

    把每一个操作提交回服务器,使用相应的代码[vb.net]处理即可.
      

  9.   

    ZXYSOSO(我很想飛)的答案可以,其他的都不行,结贴了