Link to home
Start Free TrialLog in
Avatar of moosetracker
moosetracker

asked on

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.

User generated imageUser generated image
Avatar of Duy Pham
Duy Pham
Flag of Viet Nam image

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

Avatar of moosetracker
moosetracker

ASKER

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?
User generated image
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.
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?
ASKER CERTIFIED SOLUTION
Avatar of Duy Pham
Duy Pham
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks,  that works for me !!!