我怎样设置TextBox让它隐藏,而且还可以输入值,叶面里只显示值得内容。

解决方案 »

  1.   

    <asp:TextBox ID="TextBox1" runat="server" style="border-top-style: none; border-right-style: none; border-left-style: none; background-color: transparent; border-bottom-style: none"></asp:TextBox>
      

  2.   

    你说的的是设置边框吧?你在vs设计器上选择TextBox,然后在属性编辑窗上选择“样式(Style)”,然后修改边框以及填充的样式就行了。别想成隐藏了。
      

  3.   

    晕,这样你为什么不用个Lable
     这样也可以~~~
    不过楼上说的把样式改改估计也可以~~~