Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/258.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# asp.net listview数据寻呼机和jquery_C#_Jquery_Asp.net_Ajax_Listview - Fatal编程技术网

C# asp.net listview数据寻呼机和jquery

C# asp.net listview数据寻呼机和jquery,c#,jquery,asp.net,ajax,listview,C#,Jquery,Asp.net,Ajax,Listview,我有一个Asp.net Listview控件,它是通过ajax调用调用的。Listview控件每个视图只有10个项目。当我逐页浏览时,我当然会得到一个错误,因为它没有那个数据。有没有一种方法可以从ajax调用中获取listview,并且仍然能够浏览项目列表。谢谢 <asp:ListView runat="server" ID="lvFullControl" GroupItemCount="5" OnItemCreated="Setup"> <Emp

我有一个Asp.net Listview控件,它是通过ajax调用调用的。Listview控件每个视图只有10个项目。当我逐页浏览时,我当然会得到一个错误,因为它没有那个数据。有没有一种方法可以从ajax调用中获取listview,并且仍然能够浏览项目列表。谢谢

   <asp:ListView runat="server" ID="lvFullControl" GroupItemCount="5" OnItemCreated="Setup">
            <EmptyDataTemplate>
                <table id="Table1" runat="server" style="">
                    <tr>
                        <td>
                            No data was returned.
                        </td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <EmptyItemTemplate>
                <td id="Td1" runat="server" />
            </EmptyItemTemplate>
            <GroupTemplate>
                <tr id="itemPlaceholderContainer" runat="server">
                    <td id="itemPlaceholder" runat="server">
                    </td>
                </tr>
            </GroupTemplate>
            <ItemTemplate>
                <td id="Td2" runat="server" style="display: inline-block; position: relative; margin: 0.7em;
                    text-align: left; vertical-align: top;">
                    <div id="HypeShare" style="padding: 0; margin: 0">
                        <input type="hidden" value="<%#Eval("ID") %>" />
                        <asp:HyperLink runat="server" ID="hypShar"></asp:HyperLink>
                         <input type="hidden" value="<%#Eval("CreatD") %>"/>
                         </div>
                    <div class="EditClass">
                        <asp:ImageButton ToolTip='<%#Eval("Description") %>' runat="server" ID="AlbumImage" Width="110"
                            Height="110" ImageUrl='<%#Eval("Defau") %>' /></div>
                    <img src="../SiteImages/private.png" style="margin: 0" />
                    <span style="margin: 0">photos:
                        <%#Eval("Count")%></span><br />
                    <div id="hypAccess" style="padding: 0; margin: 0">
                        <input type="hidden" value="<%#Eval("ID") %>" />
                        <asp:HyperLink runat="server" ID="hypeDelet" Visible="false" Text="Delete"></asp:HyperLink>
                        <asp:HyperLink ID="hypeMyAccess" runat="server" Visible="false" Text="Remove my Access"></asp:HyperLink>

                    </div>
                    <div  class="EditClass">
                        <asp:HyperLink runat="server" ID="Edit" ToolTip='<%#Eval("Description") %>' Font-Underline="false">
                        <p class="title" runat="server" id="pTitle">
                            <%#Eval("Name") %></p>
                    </asp:HyperLink></div>
                </td>
            </ItemTemplate>
            <LayoutTemplate>
                <table id="Table2" runat="server">
                    <tr id="Tr1" runat="server">
                        <td id="Td3" runat="server">
                            <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                <tr id="groupPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="Tr2" runat="server">
                        <td id="Td4" runat="server" style="">
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
        </asp:ListView>
        <asp:DataPager ID="ProductListPagerSimple" runat="server"
 function GetFullA() {
            $.ajax({
                type: "GET",
                url: '../Controls/myfullcontrol.aspx',
                cache: false,
                success: function (data) {
                    $('#SiteFullControl').html(data);
                },
                complete: function () {
                    $('#FullControlCount').html('Full Control  (' + $('[id$=FullCounter]').val() + ')');
                    setupAccessInfo();
                    setupShareAccess();
                    menuFullControlSetup($('#nav-myfullcontrol'));
                        $('#LoadingAjax').dialog('close');
                        destroyDialog = false;
                }

            });
        }