我可以将面板控件放在Html Tr标签中吗? [英] Can I Put Panel Control In Html Tr Tag..?

查看:77
本文介绍了我可以将面板控件放在Html Tr标签中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<pre lang="c#"><tr>
                    <td>
                        Supervisor :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlsupervisor" runat="server">
                            <asp:ListItem>"--Select--"</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        Remark :
                    </td>
                    <td>
                        <asp:TextBox ID="txtremark" runat="server" TextMode="MultiLine" MaxLength="150"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <asp:Panel ID="pnl1" runat="server">
                        <td>
                            Store Name
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlstore" runat="server">
                                <asp:ListItem Text="--Select--" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </asp:Panel>
                </tr></pre>

i got this error...
Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object

please help me

推荐答案

你好朋友, TD 是唯一允许在<$内的标签c $ c> TR 标签。让我们将面板控件移到 TD 中,并在面板中添加一个新表,使其结构如下:



Hello friend, TD is the only tag which is allowed within a TR tag. Let's move the panel control inside the TD and add a new table within the panel to have the same structure as follows:

<tr>	
  <td colspan="4">
    <asp:panel id="pnl1" runat="server" xmlns:asp="#unknown">
      <table>
	<tr>
	  <td>Store Name</td>
	  <td>
            <asp:dropdownlist id="ddlstore" runat="server">
              <asp:listitem text="--Select--" value="0"></asp:listitem>
            </asp:dropdownlist>
	  </td>	
	</tr>
      </table>
    </asp:panel>
  </td>
</tr>


这篇关于我可以将面板控件放在Html Tr标签中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆