J
Jason
Hello,
I am trying to utilitze the AJAX Control toolkit in my asp.net project. I
have added a reference to AjaxControlToolkit.dll, and in my page, added
these lines of code:
<ajaxToolkit:ToolkitScriptManager runat="Server"
EnableScriptGlobalization="true" EnableScriptLocalization="true"
ID="ScriptManager1" />
<asp:TextBox runat="server" ID="txtFromDate" />
<asp:ImageButton runat="Server" ID="Image1" ImageUrl="/images/calendar.png"
AlternateText="Click to show calendar" /><br />
<ajaxToolkit:CalendarExtender ID="calendarButtonExtender" runat="server"
TargetControlID="txtFrom" PopupButtonID="Image1" />
Everything builds fine, but when I actually run the page I get the error:
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS0012: The type 'System.Web.UI.ScriptManager' is
defined in an assembly that is not referenced. You must add a reference to
assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.
I then added a reference to System.Web.Extensions, but I get the same error
when I refresh the page. Am I adding this reference the wrong way?
Also, and this may be related, I don't see the AJAX toolkit in my toolbox.
What am I not doing?
Thanks-
Jason
I am trying to utilitze the AJAX Control toolkit in my asp.net project. I
have added a reference to AjaxControlToolkit.dll, and in my page, added
these lines of code:
<ajaxToolkit:ToolkitScriptManager runat="Server"
EnableScriptGlobalization="true" EnableScriptLocalization="true"
ID="ScriptManager1" />
<asp:TextBox runat="server" ID="txtFromDate" />
<asp:ImageButton runat="Server" ID="Image1" ImageUrl="/images/calendar.png"
AlternateText="Click to show calendar" /><br />
<ajaxToolkit:CalendarExtender ID="calendarButtonExtender" runat="server"
TargetControlID="txtFrom" PopupButtonID="Image1" />
Everything builds fine, but when I actually run the page I get the error:
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS0012: The type 'System.Web.UI.ScriptManager' is
defined in an assembly that is not referenced. You must add a reference to
assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.
I then added a reference to System.Web.Extensions, but I get the same error
when I refresh the page. Am I adding this reference the wrong way?
Also, and this may be related, I don't see the AJAX toolkit in my toolbox.
What am I not doing?
Thanks-
Jason