473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

AJAX "After the Fact"

Can anyone point me to any good resources on adding AJAX to a page once the
page has already been created? I know VS2008 has options to add AJAX pages,
but I didn't select those options when the pages were created.

Thanks.

Jonathan

Jun 27 '08 #1
11 1500
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e8**************@TK2MSFTNGP05.phx.gbl...
Can anyone point me to any good resources on adding AJAX to a page once
the page has already been created? I know VS2008 has options to add AJAX
pages, but I didn't select those options when the pages were created.

Thanks.

Jonathan
I'd create a new Ajax web site. Take a look at the web.config and copy the
Ajax stuff into your old config, basically anything that's not there
previously. You can then add a ScriptManager to the web form and you're set.

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name
Jun 27 '08 #2

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e8**************@TK2MSFTNGP05.phx.gbl...
Can anyone point me to any good resources on adding AJAX to a page once
the page has already been created? I know VS2008 has options to add AJAX
pages, but I didn't select those options when the pages were created.

Thanks.

Jonathan
Check out this site. Has great videos to tell you all about ajax

http://www.asp.net/AJAX/documentation/

LS

Jun 27 '08 #3
You must need to add script control to the page....
But you must change web.config once to support AJAX (in VS2005 ) in VS 2008
it's there by default I believe.

George.

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e8**************@TK2MSFTNGP05.phx.gbl...
Can anyone point me to any good resources on adding AJAX to a page once
the page has already been created? I know VS2008 has options to add AJAX
pages, but I didn't select those options when the pages were created.

Thanks.

Jonathan

Jun 27 '08 #4
Thanks. Yeah, that site has a lot of information about AJAX. Couldn't find
where it talked about adding it after the fact though.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Lloyd Sheen" <a@b.cwrote in message
news:u8**************@TK2MSFTNGP06.phx.gbl...
>
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e8**************@TK2MSFTNGP05.phx.gbl...
>Can anyone point me to any good resources on adding AJAX to a page once
the page has already been created? I know VS2008 has options to add AJAX
pages, but I didn't select those options when the pages were created.

Thanks.

Jonathan

Check out this site. Has great videos to tell you all about ajax

http://www.asp.net/AJAX/documentation/

LS
Jun 27 '08 #5
I really dislike this. In VS2008, my web.config files are automatically
loaded with tons of stuff. Then, when I need to deploy my app and create a
"live" version of the config file, it's nearly impossible to strip out stuff
I don't need or don't want (or determine which is which). The idea of trying
to copy everything from one config file to another that is not already in
the target file would not only be an enormous task that would be very
tedious and prone to errors, but it would seem like it would be undesirable
as well.

The web.config file is a great idea but I can see now it's going to grow
into a monster just like the Windows registry did.

I can't believe adding AJAX to an existing page is going to be this much
trouble.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Joe Fawcett" <jo********@newsgroup.nospamwrote in message
news:eZ**************@TK2MSFTNGP03.phx.gbl...
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e8**************@TK2MSFTNGP05.phx.gbl...
>Can anyone point me to any good resources on adding AJAX to a page once
the page has already been created? I know VS2008 has options to add AJAX
pages, but I didn't select those options when the pages were created.

Thanks.

Jonathan
I'd create a new Ajax web site. Take a look at the web.config and copy the
Ajax stuff into your old config, basically anything that's not there
previously. You can then add a ScriptManager to the web form and you're
set.

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

Jun 27 '08 #6
re:
!I can't believe adding AJAX to an existing page is going to be this much trouble

It's not.

The easiest way I've found to do that is to create
a new Ajax application, and saving the web.config file.

All you have to do then is copy and paste the contents
of the web.config to any non-Ajax application's web.config.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Jonathan Wood" <jw***@softcircuits.comwrote in message news:un**************@TK2MSFTNGP02.phx.gbl...
>I really dislike this. In VS2008, my web.config files are automatically loaded with tons of stuff. Then, when I need to
deploy my app and create a "live" version of the config file, it's nearly impossible to strip out stuff I don't need or
don't want (or determine which is which). The idea of trying to copy everything from one config file to another that is
not already in the target file would not only be an enormous task that would be very tedious and prone to errors, but
it would seem like it would be undesirable as well.

The web.config file is a great idea but I can see now it's going to grow into a monster just like the Windows registry
did.

I can't believe adding AJAX to an existing page is going to be this much trouble.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Joe Fawcett" <jo********@newsgroup.nospamwrote in message news:eZ**************@TK2MSFTNGP03.phx.gbl...
>"Jonathan Wood" <jw***@softcircuits.comwrote in message news:e8**************@TK2MSFTNGP05.phx.gbl...
>>Can anyone point me to any good resources on adding AJAX to a page once the page has already been created? I know
VS2008 has options to add AJAX pages, but I didn't select those options when the pages were created.

Thanks.

Jonathan
I'd create a new Ajax web site. Take a look at the web.config and copy the Ajax stuff into your old config, basically
anything that's not there previously. You can then add a ScriptManager to the web form and you're set.

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name


Jun 27 '08 #7
Juan,
!I can't believe adding AJAX to an existing page is going to be this
much trouble

It's not.

The easiest way I've found to do that is to create
a new Ajax application, and saving the web.config file.

All you have to do then is copy and paste the contents
of the web.config to any non-Ajax application's web.config.
As I mentioned previously, I find working with the web.config file can be
unwieldy. I've spent a LOT of time tweaking the two versions of web.config
(development and deployed versions) for this particular application. There's
no way I'd copy and paste the entire contents of a brand new web.config
file. And I have no idea how readily I'll be able to determine what part of
the config file is AJAX related.

Surely others have done this before. I just can't believe it's this much
trouble.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jun 27 '08 #8

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e1**************@TK2MSFTNGP04.phx.gbl...
Juan,
>!I can't believe adding AJAX to an existing page is going to be this
much trouble

It's not.

The easiest way I've found to do that is to create
a new Ajax application, and saving the web.config file.

All you have to do then is copy and paste the contents
of the web.config to any non-Ajax application's web.config.

As I mentioned previously, I find working with the web.config file can be
unwieldy. I've spent a LOT of time tweaking the two versions of web.config
(development and deployed versions) for this particular application.
There's no way I'd copy and paste the entire contents of a brand new
web.config file. And I have no idea how readily I'll be able to determine
what part of the config file is AJAX related.

Surely others have done this before. I just can't believe it's this much
trouble.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
The video you want to look at for hints is:

http://www.asp.net/learn/ajax-videos/video-81.aspx

LS

Jun 27 '08 #9
re:
!I just can't believe it's this much trouble

Again, it's not.

All you need to determine is whether system.web.extensions
and the Script Manager are installed.

See : http://msdn.microsoft.com/en-us/library/bb907614.aspx
for what you need to look for.

As far as the actual web.config lines needed, they are :

1.
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensions SectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

2.
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

2a.
dependentAssembly...
assemblyIdentity name="System.Web.Extensions.Design

3.
....and the lines which refer to the "ScriptHandlerFactory", "ScriptHandlerFactoryAppServices" and "ScriptResource"

That's it...

All the rest of the stuff in web.config is other .Net 3.5-related.

But, again, the best way to handle this is not to perform surgery
on an existing app but, rather, to create a new Ajax-enabled app
and add whatever functionality you have in your Ajax-less app.

You can't go wrong with that.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Jonathan Wood" <jw***@softcircuits.comwrote in message news:e1**************@TK2MSFTNGP04.phx.gbl...
Juan,
>!I can't believe adding AJAX to an existing page is going to be this much trouble

It's not.

The easiest way I've found to do that is to create
a new Ajax application, and saving the web.config file.

All you have to do then is copy and paste the contents
of the web.config to any non-Ajax application's web.config.

As I mentioned previously, I find working with the web.config file can be unwieldy. I've spent a LOT of time tweaking
the two versions of web.config (development and deployed versions) for this particular application. There's no way I'd
copy and paste the entire contents of a brand new web.config file. And I have no idea how readily I'll be able to
determine what part of the config file is AJAX related.

Surely others have done this before. I just can't believe it's this much trouble.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jun 27 '08 #10
Cool. Thanks!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Lloyd Sheen" <a@b.cwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
>
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e1**************@TK2MSFTNGP04.phx.gbl...
>Juan,
>>!I can't believe adding AJAX to an existing page is going to be this
much trouble

It's not.

The easiest way I've found to do that is to create
a new Ajax application, and saving the web.config file.

All you have to do then is copy and paste the contents
of the web.config to any non-Ajax application's web.config.

As I mentioned previously, I find working with the web.config file can be
unwieldy. I've spent a LOT of time tweaking the two versions of
web.config (development and deployed versions) for this particular
application. There's no way I'd copy and paste the entire contents of a
brand new web.config file. And I have no idea how readily I'll be able to
determine what part of the config file is AJAX related.

Surely others have done this before. I just can't believe it's this much
trouble.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

The video you want to look at for hints is:

http://www.asp.net/learn/ajax-videos/video-81.aspx

LS
Jun 27 '08 #11

Try this...
http://www.bennysutton.com/Ajax/default.aspx

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MB | last post by:
I am writing an FTP Client using the NIO packages because I want to use the non-blocking functionality. I have done this successfully except for the fact that after I "put" an image file to the...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
3
by: Kevin Pedersen | last post by:
Hello, I am using an editable datagrid. After I save the changes the datagrid shows the old values. I've read the posts about the Page_Load and not binding the datagrid each time. The SQL that...
13
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
1
by: Trygve Lorentzen | last post by:
Hi, my webservice is running on Win2000 SP4, IIS 5.0 fully patched, connecting to a MySQL database and mainly returning Typed DataSet's from webmethods. After running for a while, generally a...
1
by: Larax | last post by:
Alright, so here's the problem. I define a global variable in my script and then add methods/properties to it. Everything works great, no error in Javascript Console. But when I refresh site,...
1
by: jhmace | last post by:
I have embedded a script into a simple page that allows a visitor to join an email list. The email list is hosted by campaigner.com. The site is: http://www.GreenFinds.com The email signup is...
9
by: Alan | last post by:
I am kind of new to javascript, I am not sure if there is direct support for "tokens" in the sense that they are characters that mark places in a string. For example if I had var mystring =...
0
by: KLEIN Stephane | last post by:
Hi, first, I think that my question is generalist and don't impact only zopeproject and/or Paste package. Instance, when I trace (debug) some scripts, its name is "/home/harobed/...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.