下面是HTML设计视图中Panel控件的定义:
<TABLE cellSpacing=0 cellPadding=0 width=600 bgColor=#ffffff border=0> <?xml:namespace prefix = asp />
<asp:panel id=TestPanel Width="398px" Height="171px" runat="server">
HTML GOES HERE
</asp:panel>
</TABLE>
2、将我们的HTML代码输入到Panel控件中
在Panel控件中编写相关的HTML代码(或将HTML代码拖到Panel控件中),下面是一个例子:
<asp:panel id=TestPanel Width="398px" Height="171px" runat="server">
<H2>An example HTML segment that is going to disappear </H2>
An example drop down
<asp:DropDownList id=ADropDownListBox runat="server">
</asp:DropDownList>
</asp:panel>
3、创建一个LinkButton控件