the page title will always be updated at the end of a partial postback. are you sure that you're not changing it programatically during a partial postback? (for instance, are you changing the header.text property anywhere?)
--
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
hum, not quite sure on what might be happening there...have you tried changing the <asp:Localize> control with code that does the same thing ? (i believe that the method is called GetGlobalResourceObject)?
--
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
This was never a problem, but with Ajax, after an UpdatePanel, this title is used instead of the title specified in the Master page! In all my other pages, I have now:
My site is using localization, MS Access database, streaming RSS feeds en emailsadresses as gif, and is now Ajax enabled. In fact the only things I did was:
<div mce_keep="true">Change Web.config tro enable Ajax</div>
<div mce_keep="true">In the Master page I changed:</div> <div mce_keep="true"> <asp:ContentPlaceHolder runat="Server" id="content">
<p>(content)</p>
</asp:ContentPlaceHolder></div>
</div>As long as your pages are 'pure' ASP.Net, I found no problems to change my
http://www.bieragenda.nl site into an Ajax enabled site with localization, Master page, RRS feeds, generating 100% validate (W3C.org) XHTML pages, etc. If anyone has questions how I solved some of these problems, do not
hesitate to contact me.
arnoudaten
Member
1 Points
9 Posts
Sometimes the page title disappears after update of an UpdatePanel
Oct 10, 2007 08:34 PM|LINK
I changed my website bieragenda.nl into an Ajax enabled website, by placing
<asp:scriptmanager ID="Scriptmanager1" runat="server" />
<asp:ContentPlaceHolder runat="Server" id="content">
<p>(content)</p>
</asp:ContentPlaceHolder>
in the masterpage, and added:
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> ... </ContentTemplate> </asp:UpdatePanel>in the other pages. Everything works fine, for example look at http://www.bieragenda.nl/month.aspx and click on the next mont in the calendar control, the panel is updated in the correct way. However the pages http://www.bieragenda.nl/archive.aspx and http://www.bieragenda.nl/overview.aspx seems to work fine, but the page title will disappear after new criteria are specified!!!
How can I keep the page title in these two pages?
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Sometimes the page title disappears after update of an UpdatePanel
Oct 10, 2007 09:20 PM|LINK
hello.
the page title will always be updated at the end of a partial postback. are you sure that you're not changing it programatically during a partial postback? (for instance, are you changing the header.text property anywhere?)
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
arnoudaten
Member
1 Points
9 Posts
Re: Sometimes the page title disappears after update of an UpdatePanel
Oct 10, 2007 09:23 PM|LINK
I am doing nothing with the title in the Master Page. The title in the Master Page is defined as:
<title><asp:Localize id="locTitle" runat="server" text="<%$ Resources:resource, WebTitle%>" /></title>
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Sometimes the page title disappears after update of an UpdatePanel
Oct 10, 2007 10:02 PM|LINK
hello again.
hum, not quite sure on what might be happening there...have you tried changing the <asp:Localize> control with code that does the same thing ? (i believe that the method is called GetGlobalResourceObject)?
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
arnoudaten
Member
1 Points
9 Posts
Re: Sometimes the page title disappears after update of an UpdatePanel
Oct 11, 2007 08:57 PM|LINK
Luis,
Thanks for your reply, which helped me to find the problem and solution. You are right. In fact
is not legal, so I removed this line from the Master page. I also found out that in the pages http://www.bieragenda.nl/archive.aspx and http://www.bieragenda.nl/overview.aspx, for some reason there was: This was never a problem, but with Ajax, after an UpdatePanel, this title is used instead of the title specified in the Master page! In all my other pages, I have now:Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Sometimes the page title disappears after update of an UpdatePanel
Oct 11, 2007 09:11 PM|LINK
hello again.
ahah...completly forgot about the possiblity of "overriding" the title set on the master :)
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
arnoudaten
Member
1 Points
9 Posts
Re: Sometimes the page title disappears after update of an UpdatePanel
Oct 11, 2007 10:49 PM|LINK
My site is using localization, MS Access database, streaming RSS feeds en emailsadresses as gif, and is now Ajax enabled. In fact the only things I did was:
<p>(content)</p>
</asp:ContentPlaceHolder></div>
Into:
<asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:ContentPlaceHolder runat="Server" id="content"> <p>(content)</p> </asp:ContentPlaceHolder> </ContentTemplate> </asp:UpdatePanel><div mce_keep="true"> </div>As long as your pages are 'pure' ASP.Net, I found no problems to change my http://www.bieragenda.nl site into an Ajax enabled site with localization, Master page, RRS feeds, generating 100% validate (W3C.org) XHTML pages, etc. If anyone has questions how I solved some of these problems, do not hesitate to contact me.