Last post Jan 27, 2014 10:30 PM by chetan.sarode
Jan 27, 2014 09:44 AM|dlchase|LINK
Our asp.net site uses master pages on most all pages in the website. I want to make ajaxtoolkit available on all pages that use the master page and only use UpdatePanel on some of those pages. Which control do I use and where should they be placed? On
some pages I am getting "Unknown server tag 'asp:CalendarExtender'" message. Thanks.
Jan 27, 2014 09:59 AM|kedarrkulkarni|LINK
add toolkitscriptmanager in master page
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
add updatepanel only on those content pages where u want to use it
also, make sure to make changes in web.config after adding reference to ajaxcontroltoolkit assembly
hope this helps...
Jan 27, 2014 10:02 AM|dlchase|LINK
Can it go anywhere in master page body? Also, does the below need to only be on the master page or on all pages?
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
Jan 27, 2014 10:30 AM|kedarrkulkarni|LINK
Can it go anywhere in master page body?
u should place it immediately after form tag in mast page
Also, does the below need to only be on the master page or on all pages?
yes... u will have to set register assembly tag only once in master page...
Jan 27, 2014 10:37 AM|dlchase|LINK
When I take the register line out of the content page that is when I get the
Unknown server tag 'asp:CalendarExtender' error.
Jan 27, 2014 10:45 AM|kedarrkulkarni|LINK
add configection element from this link into web.config
Jan 27, 2014 10:30 PM|chetan.sarode|LINK
The reason why you are getting the warning is that you have given the same "TagPrefix", asp, to AJAX toolkit controls. The "asp" TagPrefix is used for ASP.NET controls by default. Just give a different TagPrefix to the AJAX controls and that should solve