asp.net中的更新面板导致完全回发

asp.net中的更新面板导致完全回发,asp.net,ajax,Asp.net,Ajax,我有一个asp.net web应用程序,我想包括ajax功能,我添加了更新面板脚本管理器,但它仍然会导致完整的回帖, 我是否需要做一些额外的工作来将ajax包含在现有的项目中,以便它能够进行部分回发 有什么可能的原因导致邮件被退回 iam使用Visual studio 10和我的项目目标.NET 4.0 我所尝试的: 我尝试为控件和事件包含异步回发触发器和已定义的触发器,将“更新面板更新模式”属性设置为“条件”,将“子触发器”属性设置为“假”,并将“脚本管理器”设置为“启用部分渲染” 没用 en

我有一个asp.net web应用程序,我想包括ajax功能,我添加了更新面板脚本管理器,但它仍然会导致完整的回帖, 我是否需要做一些额外的工作来将ajax包含在现有的项目中,以便它能够进行部分回发

有什么可能的原因导致邮件被退回

iam使用Visual studio 10和我的项目目标.NET 4.0

我所尝试的:

我尝试为控件和事件包含异步回发触发器和已定义的触发器,将“更新面板更新模式”属性设置为“条件”,将“子触发器”属性设置为“假”,并将“脚本管理器”设置为“启用部分渲染” 没用

enter code here<asp:scriptmanager ID="script1" runat="server"></asp:scriptmanager>
                <asp:UpdatePanel ID="panel1" runat="server">
                    <ContentTemplate>

                    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                        <tr>
                        <TD width=10><IMG height=1 src="../images/spacer.gif" width=10 border=0></TD>
                            <td  align="left">
                                <table class="titleTable" width="100%" cellSpacing="0" cellPadding="0" border="0">
                                    <tr>
                                        <%--<td><A onclick="javascr:showHide('ExpiredItemsSection', 'ExpiredsearchImage');" href="javascri:void(0);"><STRONG>Expired Items</strong></A></td>
                                        <td align="right"><a href="javascri:void(0);" onclick="javascri:showHide('ExpiredItemsSection', 'ExpiredsearchImage');"><IMG id="ExpiredsearchImage" src="../images/spacer.gif" width="18" height="15" border="0" runat="server"></a></td>
                                    --%>
                                    <td>
                                        <asp:linkbutton id="Expireditem" runat="server" onClick="Expireditem_Click">Expired Items</asp:linkbutton>
                                    </td>

                                    </tr>
                                </table>
                            </td>
                            <TD width=10><IMG height=1 src="../images/spacer.gif" width=10 border=0></TD>
                        </tr>
                        <tr>
                            <td colspan="3"><IMG height=3 src="../images/spacer.gif" width=1 border=0></td>
                        </tr>
                    </table>


                    <div id="ExpiredItemsSection" runat="server">
                        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                        <tr>
                            <td colspan="3"><IMG height=10 src="../images/spacer.gif" width=1 border=0></td>
                        </tr>
                        <tr>
                        <td width="10"><IMG height="1" src="../images/spacer.gif" width="5" border="0"></td>
                        <td noWrap align="center">
                            <table  cellSpacing="0" cellPadding="0"  border="0" class="formTable" width="100%">
                                <tr>
                                    <td align="right" height="20px"><strong><asp:label id="ExpiredItemsRenderNav" Runat="server" CssClass="blueText"></asp:label></strong>&nbsp;</td>
                                </tr>
                            </table>
                            </td>
                            <td width="10"><IMG height="1" src="../images/spacer.gif" width="5" border="0"></td>
                        </tr>
                    </table>
                    <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
                        <tr>
                            <td colspan="3"><IMG height=3 src="../images/spacer.gif" width=1 border=0></td>
                        </tr>
                            <TR>
                                <TD width=10><IMG height="1" src="../images/spacer.gif" width="10" border="0"></TD>
                                <TD>
                                    <asp:datagrid id="ExpiredItemsList" runat="server" CssClass="dataTable" HorizontalAlign="Center" AutoGenerateColumns="False" PageSize="6" AllowSorting="True" AllowPaging="True" Width="100%" ToolTip="Click the items to view details" border="0">
                                        <AlternatingItemStyle CssClass="grey"></AlternatingItemStyle>
                                        <ItemStyle CssClass="Right"></ItemStyle>
                                        <HeaderStyle CssClass="header" HorizontalAlign="left" />
                                        <Columns>
                                            <asp:TemplateColumn SortExpression="ItemID" HeaderText="Item ID">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblItemID" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "ItemID" ) %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="Description" HeaderText="Description">
                                                <ItemTemplate>
                                                    <IRIS:RBACLINK id="rbacDescription" NavigateURL="../MyIris/ViewItem.aspx" runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "Description" )%>' >
                                                    </IRIS:RBACLINK>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="lotno" HeaderText="Lot No">
                                                <ItemTemplate>
                                                    <asp:Label ID="lotno" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "lotno" ) %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="Serial No" HeaderText="Serial No">
                                                <ItemTemplate>
                                                    <asp:Label ID="Serial_No" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "Serial No" ) %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="Ref Price" HeaderText="Value">
                                                <ItemTemplate>
                                                    <asp:Label ID="Ref_Price" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "Ref Price" ) %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="Item Status" HeaderText="Item Status">
                                                <ItemTemplate>
                                                    <asp:Label ID="Item_Status" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "Item Status" ) %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="location" HeaderText="Location">
                                                <ItemTemplate>
                                                    <asp:Label ID="location" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "location" ) %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="forecastdays" HeaderText="Days">
                                                <ItemTemplate>
                                                    <asp:Label ID="forecastdays" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "forecastdays" ) %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn SortExpression="expirydate" HeaderText="Expired Date">
                                                <ItemTemplate>
                                                    <asp:Label ID="ExpiryDate" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "expirydate") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                        </Columns>
                                        <PagerStyle NextPageText="Next&#160;&lt;img src='../images/arrowsOutline.gif' border=0 alt='arrow Bullet' width='14' height='11' align='absmiddle'&gt;"
                                            PrevPageText="&lt;img src='../images/arrowsOutline_left.gif' border=0 alt='left Arrow' width='14' height='11' align='absmiddle'&gt;&#160;Previous"
                                            HorizontalAlign="Right"></PagerStyle>
                                    </asp:datagrid></TD>
                                <TD width=10><IMG height="1" src="../images/spacer.gif" width="10" border="0"></TD>
                            </TR>
                            <tr>
                                <td colspan="3"><IMG height="10" src="../images/spacer.gif" width="1" border=0></td>
                            </tr>
                            <tr>
                                <td><IMG height="1" src="../images/spacer.gif" width="1" border=0></td>
                                <td class="lineSeperator" height="1"><IMG height="1" src="../images/spacer.gif" width="1" border=0></td>
                                <td><IMG height="1" src="../images/spacer.gif" width="1" border=0></td>
                            </tr>
                        </TABLE>
                    </div>
                      </ContentTemplate>
                     </asp:UpdatePanel>
在此处输入代码
--%>
过期物品


如果未在表单中绑定数据,请使用

<UpdatePanel>
 <ContentTemplate>
     your content
 </ContentTemplate>
        <Triggers>
           <asp:AsyncPostBackTrigger ControlID="control_id" />
        </Triggers>
</asp:UpdatePanel>

你的内容
如果要绑定数据,请使用

<UpdatePanel>
     <ContentTemplate>
         your content
     </ContentTemplate>
            <Triggers>
               <asp:PostBackTrigger ControlID="control_id" />
            </Triggers>
</asp:UpdatePanel>

你的内容

希望这对你有帮助。谢谢

您是否已尝试将更新面板的客户端模式设置为静态?几天前,我访问了您所在的位置,这使页面无法完全刷新。

您能分享源代码吗。如果你没有把你的问题说清楚,那就没用了。