怎样动态控制input类型的Button的是否显示

解决方案 »

  1.   

    document.getElementById("Button1").style.display="none";
    document.getElementById("Button1").style.display="";
      

  2.   

    input runat=server 然后服务器端input.visible = false;
      

  3.   

    <INPUT id="Button2"  type="button" value="Button" name="Button2" runat="server">
    ***************************
    Button2.Visible = false;
      

  4.   

    不能将Button转换成服务器空间
      

  5.   

    我用的是Formview来对数据库添加数据,当点“添加1”按钮时,进入InsertTemplet不显示input按钮,当点“添加2”时在InsertTemplet显示input按钮,要是调用2楼的JS实现,事件在什么时候触发呢?