<%@ Page Language="vb" %>
<html> 
<head>
   <script Runat="server">
      Sub show(src As Object, e As EventArgs)
	detailsPanel.visible = "true"
     End sub
     Sub Hide(src As Object, e As EventArgs)
     	detailsPanel.visible = "false"
     End sub
  </script>
 </head> 
   <body style="background-color='beige'; font-family='verdana'; font-size='10pt'">
<H2>   面板</H2>
   <form method="POST" runat="server">
    <asp:Panel id="detailsPanel" runat="server" Visible="false">
    数量:<asp:TextBox id="Qty" Runat="server"/>
     价格:    <asp:TextBox id="Price" Runat="server"/>
     总计:<asp:TextBox id="Amount" ReadOnly = "true" Runat="server"/>
    
    </asp:panel>
    <asp:Button id="btnShow" Text="显示面板" OnClick="Show" Runat="server"/>
    <asp:Button id="btnhide" Text="隐藏面板" OnClick="Hide" Runat="server"/><br>
    <br>
   </form> 
  </body>
</html>
