如何在更新面板中插入内容占位符? [英] How to insert a content place holder in update panel?

查看:45
本文介绍了如何在更新面板中插入内容占位符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,
我们能否将内容占位符放置在更新面板中以仅加载Web表单.
请帮助我..

Hai,
Can we place a content place holder into update panel for loading only web forms.
Plz help me..

推荐答案

否,如果将ContentPlaceHolder放在UpdatePanel中将不起作用,但是如果要使用UpdatePanel,则可以在Content中使用它页.只需使用UpdatePanel包装内容"页面上的所有控件即可:-
No if you put ContentPlaceHolder in UpdatePanel it won''t work, however if you want to use UpdatePanel then you can use it in Content page. Just wrap all the controls on Content page with UpdatePanel:-
<![CDATA[<%@ Page Language="C#" MasterPageFile="MasterPage.master" Title="UpdatePanel in Master Pages" %>
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
    Content Page<br />
    <asp:updatepanel id="UpdatePanel1" runat="server">
        <contenttemplate>
        <fieldset>
        <legend>UpdatePanel</legend>
           <asp:calendar id="Calendar1" runat="server"></asp:calendar>
        </fieldset>
        </contenttemplate>
    </asp:updatepanel>
</asp:content>



有关详细信息,请访问以下网站:-
将ASP.NET UpdatePanel控件与母版页一起使用 [母版页和MS Ajax [



For details please go through these sites:-
Using the ASP.NET UpdatePanel Control with Master Pages[^]
Masterpages and MS Ajax[^]

Hope it will you.
Best of luck.


这篇关于如何在更新面板中插入内容占位符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆