Click here to Skip to main content
16,008,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,
Can we place a content place holder into update panel for loading only web forms.
Plz help me..
Posted

1 solution

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:-
ASP
<![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>


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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900