469,648 Members | 1,200 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Basic AJAX Question

Greetings,

I'd like to implement some AJAX features on an existing ASP.NET site. I have
one example of doing this but, otherwise, don't know much about it.

I have one question, though, about getting started: I notice that there are
project templates for creating AJAX this and AJAX that. I'm a little
confused about this. Am I not able to add AJAX features to an existing Web
form? Why is it necessary to select an AJAX form or whatever?

Is there some special reason why I have to decide a form is going to use
AJAX before I create that form?

Thanks.

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

Jan 31 '08 #1
6 1413
If you use the built in AJAX page Template, everything is added for you,
that you will need (not really a big deal)

Then (bigger deal), if you use the built in AJAX website template, then,
even the Web.config contains all the entries which are necessary

Otherwise, to make sure your site will use Ajax successfully, you need to
update your Web.config file manually with the necessary items to use AJAX
The first time I updated an already existng site to AJAX - I created a
separate AJAX site and compared the two sites, including web.config files
and bin folders - adding all the necessary items to the existing site which
are needed.

There should be a number of pages/websites which actually have a list of the
items you need to update in the Web.config -

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:eF**************@TK2MSFTNGP04.phx.gbl...
Greetings,

I'd like to implement some AJAX features on an existing ASP.NET site. I
have one example of doing this but, otherwise, don't know much about it.

I have one question, though, about getting started: I notice that there
are project templates for creating AJAX this and AJAX that. I'm a little
confused about this. Am I not able to add AJAX features to an existing Web
form? Why is it necessary to select an AJAX form or whatever?

Is there some special reason why I have to decide a form is going to use
AJAX before I create that form?

Thanks.

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

Jan 31 '08 #2
On Jan 31, 12:58*pm, "Jonathan Wood" <jw...@softcircuits.comwrote:
Greetings,

I'd like to implement some AJAX features on an existing ASP.NET site. I have
one example of doing this but, otherwise, don't know much about it.

I have one question, though, about getting started: I notice that there are
project templates for creating AJAX this and AJAX that. I'm a little
confused about this. Am I not able to add AJAX features to an existing Web
form? Why is it necessary to select an AJAX form or whatever?

Is there some special reason why I have to decide a form is going to use
AJAX before I create that form?

Thanks.

--
Jonathan Wood
SoftCircuits Programminghttp://www.softcircuits.com
I think you are talking about those website templates which you can
select at the time you create a website. When you select an AJAX
template to create a web site, Visual Studio will do the necessary
configurations in web.config (maybe somewhere else as well) for you.

True, you can always select to create a regular ASP.Net website, and
configure it yourself in Web.config if you want to add some AJAX
features later on.
Jan 31 '08 #3

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:eF**************@TK2MSFTNGP04.phx.gbl...
Greetings,

I'd like to implement some AJAX features on an existing ASP.NET site. I
have one example of doing this but, otherwise, don't know much about it.

I have one question, though, about getting started: I notice that there
are project templates for creating AJAX this and AJAX that. I'm a little
confused about this. Am I not able to add AJAX features to an existing Web
form?
You are able.
>Why is it necessary to select an AJAX form or whatever?
Just a shortcut to add the controls necessary for AJAX controls on the page.
In particular, this adds the ScriptManager (and UpdatePanel?).
Is there some special reason why I have to decide a form is going to use
AJAX before I create that form?
No, but you will have to add the proper controls later, if not.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
Jan 31 '08 #4
David,
If you use the built in AJAX page Template, everything is added for you,
that you will need (not really a big deal)

Then (bigger deal), if you use the built in AJAX website template, then,
even the Web.config contains all the entries which are necessary
Okay, I'll just have to figure that out than.
Otherwise, to make sure your site will use Ajax successfully, you need to
update your Web.config file manually with the necessary items to use AJAX
The first time I updated an already existng site to AJAX - I created a
separate AJAX site and compared the two sites, including web.config files
and bin folders - adding all the necessary items to the existing site
which are needed.

There should be a number of pages/websites which actually have a list of
the items you need to update in the Web.config -
I don't recall seeing that in the one example I saw but will keep an eye out
for it..

I purchased an introduction to AJAX but it has loads of stuff I simply don't
need to know at this point, and it was written before VS2008 and so there's
a bunch of stuff that doesn't even seem to apply. I gave up on it and am
looking for a source for a brief tutorial on getting it up and running on
VS2008.

Thanks.

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

Feb 1 '08 #5
Thanks. I'll see if I can figure that out.

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

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OL**************@TK2MSFTNGP02.phx.gbl...
>
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:eF**************@TK2MSFTNGP04.phx.gbl...
>Greetings,

I'd like to implement some AJAX features on an existing ASP.NET site. I
have one example of doing this but, otherwise, don't know much about it.

I have one question, though, about getting started: I notice that there
are project templates for creating AJAX this and AJAX that. I'm a little
confused about this. Am I not able to add AJAX features to an existing
Web form?

You are able.
>>Why is it necessary to select an AJAX form or whatever?

Just a shortcut to add the controls necessary for AJAX controls on the
page. In particular, this adds the ScriptManager (and UpdatePanel?).
>Is there some special reason why I have to decide a form is going to use
AJAX before I create that form?

No, but you will have to add the proper controls later, if not.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box! |
*************************************************
Feb 1 '08 #6
Thanks. Since my site is already well underway, I don't really have the
luxury of creating it from a template.

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

"gnewsgroup" <gn********@gmail.comwrote in message
news:d9**********************************@l32g2000 hse.googlegroups.com...
On Jan 31, 12:58 pm, "Jonathan Wood" <jw...@softcircuits.comwrote:
Greetings,

I'd like to implement some AJAX features on an existing ASP.NET site. I
have
one example of doing this but, otherwise, don't know much about it.

I have one question, though, about getting started: I notice that there
are
project templates for creating AJAX this and AJAX that. I'm a little
confused about this. Am I not able to add AJAX features to an existing Web
form? Why is it necessary to select an AJAX form or whatever?

Is there some special reason why I have to decide a form is going to use
AJAX before I create that form?

Thanks.

--
Jonathan Wood
SoftCircuits Programminghttp://www.softcircuits.com
I think you are talking about those website templates which you can
select at the time you create a website. When you select an AJAX
template to create a web site, Visual Studio will do the necessary
configurations in web.config (maybe somewhere else as well) for you.

True, you can always select to create a regular ASP.Net website, and
configure it yourself in Web.config if you want to add some AJAX
features later on.

Feb 1 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by tarun.sinha | last post: by
4 posts views Thread by Richard Carpenter | last post: by
11 posts views Thread by walterbyrd | last post: by
8 posts views Thread by =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post: by
4 posts views Thread by JDeats | last post: by
7 posts views Thread by MikeB | last post: by
reply views Thread by JJ | last post: by
2 posts views Thread by BobF | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.