Adding ASP.NET AJAX to an existing project

T

trullock

Hi,

Ive installed the ASP.NET AJAX extensions and ive set up a simple
example, however its not doing anything asynchronously, its always
posting back...

Could this be something to do with the fact ive added it to an
existing project not an "asp.net ajax enabled project"?

If so, whats the difference and how do i make my existing project the
same as an ajax enabled one?


Heres the code:

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Literal runat="server" ID="lit_test" />
<asp:LinkButton runat="server" ID="btn_Test"
OnClick="btn_Test_Click">Test</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>

void btn_Test_Click(object sender, EventArgs e)
{
lit_test.Text = "will i appear via postback or not??";
}


Thanks


Andrew
 
G

Guest

I'd have to say that trying to get through the MS documentation that shows
you the individual steps to modifying your web.config file is a timeconsuming
challenge. Perhaps it's just too much for me to concentrate that hard. Plus
the web.config files always have other things in them and are never in the
same sequence as the examples.

What I do when I move from the Atlas...to...Ajax Beta...to...CTP...to...RTM
to release.... is...

1. I uninstall the old Ajax version (you wouldn't probably be doing that if
this is your first Ajax experiment)
2. Install the latest Ajax version.
3. Open VS2005 and create a new Ajax Web site. It will create a web.config
based on the new Ajax environment.
4. I use a source compare utility to compare the web.config of my old
project to the web.config of the project built in step 3 above, and it
usually shows me exactly where the changes to the references, etc, must be
made in my existing web.config.

I think you can use that logic for your situation.
I use a product by "Scooter Software" called "Beyond Compare". I don't know
how I ever lived without it before...and I have no association with the
company.

Best of luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top