使用Ajax Tabs控件时出错

时间:2011-10-11 06:40:29

标签: c# ajax ajaxcontroltoolkit

当我在fire fox 7.0版中访问该表单时,这些选项卡不显示,并且该表单在所有其他浏览器中都运行良好。请解决这个问题。提前致谢。     以下是我的代码。       <form id="frmNewsManagement" runat="server" enctype="multipart/form-data"> <cc1:ToolkitScriptManager ID="ScriptManager1" runat="server"> </cc1:ToolkitScriptManager> <asp:UpdatePanel ID="UDPMain" runat="server"> <ContentTemplate> <div style="margin-left: 10px; margin-right: 10px;">
<cc1:TabContainer ID="TabContainer1" runat="server"> <cc1:TabPanel ID="tbpnlNewsManagement" runat="server"> <HeaderTemplate> News Management </HeaderTemplate> <ContentTemplate> <asp:UpdatePanel ID="UDPfirst" ChildrenAsTriggers="true" runat="server" UpdateMode="Conditional"> <ContentTemplate> <table class="FormTable"> <tr> <td align="left" style="width: 50px"> <asp:Label ID="lblSelect" runat="server" Text="Select" SkinID="Label"></asp:Label> </td> <td> <asp:DropDownList ID="cmbStatuses" runat="server" SkinID="DropDownList" OnSelectedIndexChanged="ddlSelect_SelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="Show Active" Value="0"></asp:ListItem> <asp:ListItem Text="Show Deleted" Value="1"></asp:ListItem> </asp:DropDownList> </td> </tr> </table> <asp:GridView ID="grdViewRecord" OnDataBound="grdViewRecord_DataBound" SkinID="gvwSilver" AutoGenerateColumns="False" OnRowCommand="grdViewRecord_RowCommand" runat="server" DataKeyNames="NEWSID" OnSorting="grdViewRecord_Sorting"> <Columns> <asp:BoundField HeaderText="id" DataField="NEWSID" Visible="false" /> <asp:BoundField HeaderText="News Title" ItemStyle-Wrap="true" DataField="NEWSTITLE" SortExpression="NEWSTITLE"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="200px" /> </asp:BoundField> <asp:BoundField HeaderText="Date" DataField="NEWSDATE" ItemStyle-Wrap="true" SortExpression="NEWSDATE"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="100px" /> </asp:BoundField> <asp:BoundField HeaderText="Department" ItemStyle-Wrap="true" DataField="DEPARTMENTNAME" SortExpression="DEPARTMENTNAME"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="150px" /> </asp:BoundField> <asp:BoundField HeaderText="Status" ItemStyle-Wrap="true" DataField="STATUSSHORTDESC" SortExpression="STATUSSHORTDESC"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="100px" /> </asp:BoundField> <asp:TemplateField HeaderText="Actions" HeaderStyle-HorizontalAlign="center" Visible="false"> <ItemTemplate> <center> <asp:ImageButton ID="btnEdit" ImageUrl="~/images/Icon/ico_edit.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="EditNews" Text="Edit" ToolTip="Edit News" /> &nbsp;
<asp:ImageButton ID="btnDelete" ImageUrl="~/images/Icon/ico_delete.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="DeleteNews" Text="Delete" ToolTip="Delete News" /> </center> </ItemTemplate> <ItemStyle Width="25px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Actions" HeaderStyle-HorizontalAlign="center" ItemStyle-Width="20px" Visible="false"> <ItemTemplate> <center> <asp:ImageButton ID="btnRestore" ImageUrl="~/images/Icon/restore.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="RestoreNews" Text="Restore" ToolTip="Restore News" /> </center> </ItemTemplate> <ItemStyle Width="25px" /> </asp:TemplateField> </Columns> <PagerTemplate> <table border="0" width="100%"> <tr> <td style="border: 0"> <asp:Label ID="lblTotalRecord" runat="server"></asp:Label> </td> <td style="float: right; border: 0"> <asp:TextBox ID="txtSearch" CssClass="totalPagesAlign" runat="server"></asp:TextBox> <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/search.png" OnCommand="btnSearch_Command" CommandArgument="Search" ToolTip="Search by news title" CommandName="Search"></asp:ImageButton> <asp:ImageButton ID="imgPageFirst" runat="server" ImageUrl="~/Images/Icon/first.gif" CommandArgument="First" ToolTip="First" CommandName="Page" OnCommand="imgPageFirst_Command"> </asp:ImageButton> <asp:ImageButton ID="imgPagePrevious" runat="server" ImageUrl="~/Images/Icon/Prev.gif" CommandArgument="Prev" ToolTip="Previous" CommandName="Page" OnCommand="imgPagePrevious_Command"> </asp:ImageButton> <span class="totalPagesAlign"> <asp:Label ID="lblRecord" runat="server"></asp:Label> <asp:Label ID="lblOf" runat="server" Text="of"></asp:Label> <asp:Label ID="lblTotalPage" runat="server"></asp:Label> </span> <asp:ImageButton ID="imgPageNext" runat="server" ImageUrl="~/Images/Icon/next.gif" CommandArgument="Next" ToolTip="Next" CommandName="Page" OnCommand="imgPageNext_Command"></asp:ImageButton> <asp:ImageButton ID="imgPageLast" runat="server" ImageUrl="~/Images/Icon/Last.gif" CommandArgument="Last" ToolTip="Last" CommandName="Page" OnCommand="imgPageLast_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize" ToolTip="Show five records" runat="server" ImageUrl="~/Images/Icon/5.gif" OnCommand="btnPageSize_Command"> </asp:ImageButton> <asp:ImageButton ID="btnPageSize2" runat="server" ToolTip="Show ten records" ImageUrl="~/Images/Icon/10.gif" OnCommand="btnPageSize2_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize3" runat="server" ToolTip="Show twenty records" ImageUrl="~/Images/Icon/20.gif" OnCommand="btnPageSize3_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize4" runat="server" ToolTip="Show fifty records" ImageUrl="~/Images/Icon/50.gif" OnCommand="btnPageSize4_Command"></asp:ImageButton> </td> </tr> </table> </PagerTemplate> </asp:GridView> <asp:Label ID="lblPopupTargetID" runat="server" Style="display: none;"></asp:Label> <cc1:ModalPopupExtender ID="btnDelete_ModalPopupExtender" runat="server" PopupControlID="pnlDelete" TargetControlID="lblPopupTargetID" BackgroundCssClass="ModalPopupBG" DynamicServicePath="" Enabled="True" CancelControlID="btnDeleteCancel"> </cc1:ModalPopupExtender> <asp:Panel ID="pnlDelete" runat="server" Style="display: none;"> <div class="popup_Container"> <div class="popup_Titlebar" id="PopupHeader"> <div class="TitlebarLeft"> Delete </div> <div class="TitlebarRight" onclick="btnDelete_ModalPopupExtender.Hide()"> </div> </div> <div class="popup_Body"> Are you sure, you want to Delete the record? </div> <div> <center> <asp:Button ID="btnDeleteOK" OnClick="btnDeleteOK_Click" runat="server" SkinID="Button" Text="Ok" /> &nbsp; <asp:Button ID="btnDeleteCancel" runat="server" SkinID="Button" Text="Cancel" /> </center> <br /> </div> </div> </asp:Panel> <asp:Label ID="lblRestorePopupId" runat="server" Style="display: none;"></asp:Label> <cc1:ModalPopupExtender ID="mdpopupRestore" runat="server" PopupControlID="pnlRestore" TargetControlID="lblRestorePopupId" BackgroundCssClass="ModalPopupBG" DynamicServicePath="" Enabled="True" CancelControlID="btnRestoreCancel"> </cc1:ModalPopupExtender> <asp:Panel ID="pnlRestore" runat="server" Style="display: none;"> <div class="popup_Container"> <div class="popup_Titlebar" id="Div1"> <div class="TitlebarLeft"> Restore </div> <div class="TitlebarRight" onclick="btnDelete_ModalPopupExtender.Hide()"> </div> </div> <div class="popup_Body"> Are you sure, you want to Restore the record? </div> <div> <center> <asp:Button ID="btnRestoreOk" OnClick="btnRestoreOK_Click" runat="server" SkinID="Button" Text="Ok" /> &nbsp; <asp:Button ID="btnRestoreCancel" runat="server" SkinID="Button" Text="Cancel" /> </center> <br /> </div> </div> </asp:Panel> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="cmbStatuses" /> <asp:AsyncPostBackTrigger ControlID="grdViewRecord" EventName="RowCommand" /> <asp:AsyncPostBackTrigger ControlID="btnDeleteOK" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnDeleteCancel" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnRestoreOK" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnRestoreCancel" EventName="Click" /> <asp:PostBackTrigger ControlID="btnReport" /> </Triggers> </asp:UpdatePanel> <hr /> <asp:Button ID="btnAdd" SkinID="button" runat="server" Text="Add New" OnClick="btnAdd_Click" /> <asp:Button ID="btnReport" runat="server" Text="Report" SkinID="ReportButton" OnClick="btnReport_Click"> </asp:Button> </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> </div> </ContentTemplate> </asp:UpdatePanel> </form>

当我在fire fox 7.0版中访问该表单时,这些选项卡不显示,并且该表单在所有其他浏览器中都运行良好。请解决这个问题。

0 个答案:

没有答案