• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

New AJAX wants ScriptManger doesn't provide it?

So I added the new AJAX version 15,1,1 to my VS 2012.. In my older AJAX that is with my VS 2010 I had a ScriptManager.. With my new AJAX it is crabbing that I need a Script manager, but it is not offered in the AJAX component list..

If I don't have it, then at run time it gives me this error:
A ScriptManager is required on the page to use ASP.NET AJAX Script Components.

If I try to manually add it,    
<cc1:ScriptManager ID="ScriptManager1" runat="server">
</cc1:ScriptManager>

Open in new window


it  gives me a warning

Warning 1 Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.

Old AJAXNew AJAX
0
moosetracker
Asked:
moosetracker
  • 3
  • 3
1 Solution
 
Duy PhamFreelance IT ConsultantCommented:
AjaxControlToolkit is just a control library built upon the AJAX Extensions, therefore you can't see ScriptManager in the list of AjaxControlToolkit. You need to lookup for ScriptManager in AJAX Extensions just like in VS 2010. If you don't see AJAX Extensions, try to re-install AJAX Extensions to get it added to VS 2012.

Or you are still able to manually add ScriptManager to your ASPX page like:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

Open in new window

0
 
moosetrackerAuthor Commented:
Thanks, I did try to manually add it.. But it gives me the error of
Warning 1 Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.

So I got the AJAX toolkit installed by manually adding it to reference after a long search to figure out where the download dumped it.. (they were so helpful in dumping it in the middle of nowhere and giving you no info where they put it.)

So the path was something like this..
C:\Users\(username)\AppData\Local\Microsoft\VisualStudio\11.0\Extensions\y0nasova.qog

there is one other dll in it, but it does not seem like the one I want.. Anything that I'm showing give you the ability to point me in the right direction of what I want?
AJAX dll
0
 
Duy PhamFreelance IT ConsultantCommented:
I think you still misunderstand between AJAX Extensions and AjaxControlToolkit. ScriptManager is from AJAX Extensions, not AjaxControlToolkit, therefore you cannot find it inside AjaxControlToolkit DLLs.

Try to install AJAX Extensions 1.0 from here: http://www.microsoft.com/en-us/download/details.aspx?id=883.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
moosetrackerAuthor Commented:
Hmmm... Added it.. At least THIS one I can see it was added to the list of installed programs... But.. No AJAX extensions in the toolbox.. So I tried to add it..

First I tried to create a tab, and look for the new AJAX extensions in the "Choose Items".. Nothing about AJAX that isn't already checked and under the Toolkit.. I sorted by namespace and looked at all the A's incase is was ASPAjAX.. Nope, also looked for it starting with Microsoft..

So then I tried to look for the reference.. Nothing listed.. So I tried to browse for, and manually add it to the reference.. But.. It says it can't add it, because it is already installed...  So where is it hiding?
0
 
Duy PhamFreelance IT ConsultantCommented:
The AJAX Extensions 1.0 assemblies are:  System.Web.Extensions.dll, and Sysem.Web.Extensions.Design.dll (both have version = 1.0.61025). They can be located in %Program Files%\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 folder.

You can try to Add tab in Toolbox, browse and add System.Web.Extensions.Design.dll, or if you use Choose Items... from Toolbox, try to find the name of Controls: ScriptManager, ScriptManagerProxy, Timer, UpdatePanel and UpdateProgress.
0
 
moosetrackerAuthor Commented:
Thanks,  that works for me !!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now