开发者

Put PageContet in ASP.NET UpdatePanel

What problems might be caused if I put all page contents in an ASP.NET UpdatePanel? I mean something like thi开发者_如何转开发s in the masterpage:

<asp:ContentPlaceHolder  ID="MainContent" runat="server">
    <asp:UpdatePanel runat=server ID="asdasd" ChildrenAsTriggers=true>
        <ContentTemplate></ContentTemplate>
    </asp:UpdatePanel>
</asp:ContentPlaceHolder>


Are you talking about basically having all navigation throughout your entire site being done within an UpdatePanel? Well, for a start, that will make it impossible for anyone to bookmark anything, it will probably render your site unable to be indexed by search engines, and will just generally be confusing for the use.

The whole point of a partial postback is that it is, well, partial. Having everything within an UpdatePanel will get you all of the disadvantages and none of the advantages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜