Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

using System.Web.Script;   does not exist -AJAX installation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 24 Mar 2008 16:35 GMT
Hi,
I have downloaded the ajax tool kit for vs 2005 but when I try to run it I
get many errors.  I think it is missing some assemblies.  The first error is
system.web.script namespace does not exist.  I tried adding a reference as I
was looking for adding system.web.extensions or system.web.script but could
not find either under the .net tab.
Thanks.
Signature

Paul G
Software engineer.

George Ter-Saakov - 24 Mar 2008 16:53 GMT
for VS 2005 first you need to download AJAX itself

http://asp.net/ajax/downloads/

Scroll down to "Download ASP.NET Extensions v1.0"

Geogre.

> Hi,
> I have downloaded the ajax tool kit for vs 2005 but when I try to run it I
[quoted text clipped - 6 lines]
> not find either under the .net tab.
> Thanks.
Paul - 24 Mar 2008 17:05 GMT
ok thanks, I just installed asp.net ajax 1.0 so thinking I should now be able
to add the reference system.web.scrip or system.web.extensions
Signature

Paul G
Software engineer.

> for VS 2005 first you need to download AJAX itself
>
[quoted text clipped - 14 lines]
> > not find either under the .net tab.
> > Thanks.
Cowboy (Gregory A. Beamer) - 24 Mar 2008 17:02 GMT
The easiest way to get things set up is to create a new AJAX site in Visual
Studio. There are numerous portions in the config file that you will have to
copy over to the config in your application. If you have not set up anything
in config, just copy the complete config over.

Otherwise, you will want to copy over sections from the file.

In <configSections>, the entire hierarchy of groups starting with
system.web.extensions.

In <compilation> the System.Web.Extensions and System.Web.Extensions.Design
<add> nodes.

That is a minimum set up. You should also consider:

In <httpHandlers> the GET, HEAD line that points to extensions.
The <system.webServer> hierarchy.
and possibly the <runtime> hierarchy.

After this, you should be running.

The other option is to copy all of your pages into a newly created ASP.NET
AJAX site, but that is more time consuming.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> Hi,
> I have downloaded the ajax tool kit for vs 2005 but when I try to run it I
[quoted text clipped - 6 lines]
> not find either under the .net tab.
> Thanks.
Paul - 24 Mar 2008 17:23 GMT
Thanks, It looks like the sample website is working now, demonstrates all of
the controls.  So it looks like AJAX is a large selection of javascript
librarys that can really enhance a website with minimal effort.  That was my
next question (how to impliment one or more of these controls into my web
application) but I think it is has been answered above.
My web application uses a single master page and all other pages are
displayed in the placeholder on the master page so hopefully this will not
create any difficulties in implimenting AJAX.

Signature

Paul G
Software engineer.

> The easiest way to get things set up is to create a new AJAX site in Visual
> Studio. There are numerous portions in the config file that you will have to
[quoted text clipped - 33 lines]
> > not find either under the .net tab.
> > Thanks.
Cowboy (Gregory A. Beamer) - 24 Mar 2008 18:48 GMT
AJAX = Synchronous Javascript And Xml, so yes, it is a large number of
JavaScript libraries. The ASP.NET AJAX encapsulates most of the workings so
you do not have to write much code. There are other AJAX libs that require
more code on your part.

If all pages use AJAX, you can place the Script manager on the master page
and it will encapsulate all of your AJAX controls, which will be in the
content regions. It is a one time set up rather than each page, making
things much easier.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> Thanks, It looks like the sample website is working now, demonstrates all
> of
[quoted text clipped - 52 lines]
>> > not find either under the .net tab.
>> > Thanks.
Paul - 24 Mar 2008 19:06 GMT
ok thanks for the additional information.  I placed an accordian on one of
the pages and when I added a pane in the properties box I got the following
error,
    <cc1:AccordionExtender ID="Accordion1_AccordionExtender" runat="server"
Enabled="True"  
AccordionExtender is not a known element.  I do not have a script manager on
the page so is this why I get the error?  I will place the Script manager on
the master page as suggested since I think all the pages will use AJAX.
Signature

Paul G
Software engineer.

> AJAX = Synchronous Javascript And Xml, so yes, it is a large number of
> JavaScript libraries. The ASP.NET AJAX encapsulates most of the workings so
[quoted text clipped - 65 lines]
> >> > not find either under the .net tab.
> >> > Thanks.
Cowboy (Gregory A. Beamer) - 26 Mar 2008 01:23 GMT
First, do you have the bits in the config file. If not, you have to put them
in the page. There has to be a way to link to the bits, either through
config or through references in your page.

Here is how I learned enough to refurb sites for AJAX. First, open your
website. Then create a new AJAX site in teh same solution (you can delete it
later). Any time you have errors, try the same thing in the AJAX site and
then compare. You will usually find the solution by examining the top of the
page that is having issues. What this teaches you is priceless, as you start
to understand how they are "tricking" the application to use these new
controls.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> ok thanks for the additional information.  I placed an accordian on one of
> the pages and when I added a pane in the properties box I got the
[quoted text clipped - 89 lines]
>> >> > not find either under the .net tab.
>> >> > Thanks.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.