錯誤 7 型別 'System.Web.UI.UpdatePanel' 的值無法轉換成 'System.Web.UI.HtmlControls.HtmlTableRow'。 D:\e-Training\EmployeeQuery.aspx 128 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<tr>
<td style="height: 30px"></td>
<td bgColor="#F3F4F6" style="height: 30px" align="left">
工廠名 </td>
<td style="height: 30px">:</td>
<td align=left style="height: 30px">
<asp:DropDownList ID="DropDownList2" runat="server" Width="184px" AutoPostBack="True">
</asp:DropDownList></td>
</tr>
<tr>
<td style="height: 30px"></td>
<td bgColor="#F3F4F6" align="left" style="height: 30px">
部門名</td>
<td style="height: 30px">:</td>
<td align=left style="height: 30px">
<asp:DropDownList ID="DropDownList3" runat="server" Width="184px">
</asp:DropDownList></td>
</tr>
</ContentTemplate>
</asp:UpdatePanel>
解决方案 »
- 如何直接利第三方给定的公钥进行RSA加密?
- 好久没有上来了,近来遇到一jquery调用问题,又想到csdn了
- 为什么表单不能提交到Upload.ashx文件呢?
- 不同域下,b系统的iframe子页面如何通过js获取a系统的cookie?
- 如何判断Calendar日期是上旬,中旬还是下旬?
- 动态树的参数获取问题
- activex调用,传值,javascript加密
- 同样的ASP.NET 源码,在一个机子上可以打开,另一个打开却说我没有权限?
- for(int i =0;i<10;i++) 再vb.net里怎么写呀
- 为什么没有出现我新增的表类?
- 征求大家的意见。
- javascript怎么调用C#写的dll?急急急急~
<asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="ChooseMethod()"
onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table id="table1">
<tr>
<td style="height: 30px"></td>
<td bgColor="#F3F4F6" style="height: 30px" align="left">
工廠名 </td>
<td style="height: 30px">:</td>
<td align=left style="height: 30px">
<asp:DropDownList ID="DropDownList2" runat="server" Width="184px" AutoPostBack="True">
</asp:DropDownList></td>
</tr>
<tr>
<td style="height: 30px"></td>
<td bgColor="#F3F4F6" align="left" style="height: 30px">
部門名</td>
<td style="height: 30px">:</td>
<td align=left style="height: 30px">
<asp:DropDownList ID="DropDownList3" runat="server" Width="184px">
</asp:DropDownList></td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
这样不知道对不对
---------
可以,一定可以.估计是你有语法错误.我一直都是把UpdatePanel嵌套在table中的.楼主可以把签到工作放到设计界面去做而要放在源去做,这样就不会出现语法错误了.这与你这个,UpdatePanel应该放在table的td中.
我写个简单点的.
<table>
<tr>
<td>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<table>
,,
</table>
</asp:UpdatePanel>
</td>
</tr>
</table>这样套就没问题了.
<tr>
<td>只有这中间才可以加入新的东西或者别的什么控件</td>
</tr>
</table>table和tr之间是不能加其他的东西的,只有单元格里面才可以加