Basic AJAX Question
am 31.01.2008 18:58:21 von Jonathan Wood
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
Re: Basic AJAX Question
am 31.01.2008 19:10:44 von David Wier
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" wrote in message
news:eFJJfLDZIHA.4208@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
>
Re: Basic AJAX Question
am 31.01.2008 19:11:16 von gnewsgroup
On Jan 31, 12:58=A0pm, "Jonathan Wood" wrote:
> Greetings,
>
> I'd like to implement some AJAX features on an existing ASP.NET site. I ha=
ve
> 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 ar=
e
> 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.
Re: Basic AJAX Question
am 31.01.2008 21:25:34 von NoSpamMgbworld
"Jonathan Wood" wrote in message
news:eFJJfLDZIHA.4208@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!
|
*************************************************
Re: Basic AJAX Question
am 01.02.2008 03:01:36 von Jonathan Wood
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
Re: Basic AJAX Question
am 01.02.2008 03:04:00 von Jonathan Wood
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" wrote in message
news:d9ce1c9c-750d-4931-af06-1a2b708ee291@l32g2000hse.google groups.com...
On Jan 31, 12:58 pm, "Jonathan Wood" wrote:
> 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.
Re: Basic AJAX Question
am 01.02.2008 03:04:22 von Jonathan Wood
Thanks. I'll see if I can figure that out.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Cowboy (Gregory A. Beamer)" wrote in
message news:OLjoydEZIHA.5900@TK2MSFTNGP02.phx.gbl...
>
> "Jonathan Wood" wrote in message
> news:eFJJfLDZIHA.4208@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! |
> *************************************************
>
Re: Basic AJAX Question
am 01.02.2008 17:56:13 von NoSpamMgbworld
The two main things you have to work with are:
1. Ensuring the web.config is set up correctly. This can be done after the
fact by eitehr a) typing or b) copying from an AJAX site.
2. Adding the ScriptManager (at minimum) and other controls (UpdatePanel
most commonly) to the page you are updating.
Then, follow the examples you find on the web to get the type of
functionality you desire.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
|
*************************************************
"Jonathan Wood" wrote in message
news:ONAIFbHZIHA.1212@TK2MSFTNGP05.phx.gbl...
> Thanks. I'll see if I can figure that out.
>
> --
> Jonathan Wood
> SoftCircuits Programming
> http://www.softcircuits.com
>
> "Cowboy (Gregory A. Beamer)" wrote in
> message news:OLjoydEZIHA.5900@TK2MSFTNGP02.phx.gbl...
>>
>> "Jonathan Wood" wrote in message
>> news:eFJJfLDZIHA.4208@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! |
>> *************************************************
>>
>