I have masterpage called: AccMasterPage.master located inside folder called "accounts"
i have page called "test.aspx" that it's master page is AccMasterPage.master
i have the following code inside AccMasterPage.master:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AccMasterPage.master.cs" Inherits="accounts_AccMasterPage" EnableTheming="true" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title><asp:PlaceHolder ID="PlaceHolder1" runat="server"><%: Scripts.Render("~/bundles/modernizr") %></asp:PlaceHolder><webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/css" /><link href="../favicon.ico" rel="shortcut icon" type="../image/x-icon" /><meta name="viewport" content="width=device-width" /><asp:ContentPlaceHolder id="head" runat="server"/></head><body><form id="form1" runat="server"><asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"><Scripts><%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%><%--Framework scripts--%><asp:ScriptReference Name="jquery" /><asp:ScriptReference Name="jquery.ui.combined" /><asp:ScriptReference Name="WebForms.js" Path="~/Scripts/WebForms/WebForms.js" /><asp:ScriptReference Name="WebUIValidation.js" Path="~/Scripts/WebForms/WebUIValidation.js" /><asp:ScriptReference Name="MenuStandards.js" Path="~/Scripts/WebForms/MenuStandards.js" /><asp:ScriptReference Name="GridView.js" Path="~/Scripts/WebForms/GridView.js" /><asp:ScriptReference Name="DetailsView.js" Path="~/Scripts/WebForms/DetailsView.js" /><asp:ScriptReference Name="TreeView.js" Path="~/Scripts/WebForms/TreeView.js" /><asp:ScriptReference Name="WebParts.js" Path="~/Scripts/WebForms/WebParts.js" /><asp:ScriptReference Name="Focus.js" Path="~/Scripts/WebForms/Focus.js" /><asp:ScriptReference Name="WebFormsBundle" /><%--Site scripts--%></Scripts></asp:ToolkitScriptManager><div><div style="display:block; background-color:blue"><h3> Accounts master page</h3></div><asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"></asp:ContentPlaceHolder></div></form></body></html>
I have the follwing code inside the test.aspx page:
<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:Button ID="btnRegister" runat="server" Text="Register" Height="28px" Width="135px" OnClick="btnRegister_Click" /><asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"><ProgressTemplate><img src="../Images/ajax_loader.gif" style="height: 42px; width: 63px" /></ProgressTemplate></asp:UpdateProgress></ContentTemplate></asp:UpdatePanel>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
The error:
: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dl
Note i have same senario with no erro the difference is that the master page and the test page in root directory
,Thanks