逐渐加载沉重的视图

时间:2011-05-14 11:00:58

标签: c# asp.net-mvc-3

@{
ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>
    Index</h2>
@{
    using (var db = new PNUBOOKIR.Models.KowsarSiteEntities())
    {
        var queries = from n in db.vwGood
                      select n;
    <table>
          foreach (var q in queries)
            {
            <tr>
                <td>
                    @q.GoodCode
                </td>
                <td>
                    @q.GoodName
                </td>
                <td>
                    @q.GoodExplain1
                </td>
            </tr>                
        }
    </table>                    
    }    
}

queries.Count()是4,000,000。但我不希望任何寻呼机如何设置它逐渐加载。

1 个答案:

答案 0 :(得分:0)

为什么不将它设为twitter / slashdot? (“加载更多”按钮或使用ajax加载更多动态)