473,738 Members | 9,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding ASP.NET AJAX to an existing project

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:ScriptMana ger ID="ScriptManag er1" runat="server">
</asp:ScriptManag er>
<asp:UpdatePane l ID="UpdatePanel 1" runat="server">
<ContentTemplat e>
<asp:Literal runat="server" ID="lit_test" />
<asp:LinkButt on runat="server" ID="btn_Test"
OnClick="btn_Te st_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

Feb 23 '07 #1
2 3174
re:
how do i make my existing project the same as an ajax enabled one?
Have you followed the configuration instructions here :

http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx

?


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/
=============== =============== =====
<tr******@hotma il.comwrote in message
news:11******** **************@ z35g2000cwz.goo glegroups.com.. .
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:ScriptMana ger ID="ScriptManag er1" runat="server">
</asp:ScriptManag er>
<asp:UpdatePane l ID="UpdatePanel 1" runat="server">
<ContentTemplat e>
<asp:Literal runat="server" ID="lit_test" />
<asp:LinkButt on runat="server" ID="btn_Test"
OnClick="btn_Te st_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

Feb 23 '07 #2
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...Aj ax 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.

Feb 23 '07 #3

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

Similar topics

5
1887
by: igotyourdotnet | last post by:
I have a question on atlas: I can create an 'atlas project' and I can add atlas controls fine. but when I try and add an atlas control to an existing asp.net web app I can't, Why? I did notice that the web.cofig file is different then a normal web app web.config. Do I need to add anything to the web.config file of my existing web app or no? I have the Microsfot.Web.Atlas.dll referenced in my web app. what else do I need to do to add...
1
1400
by: =?Utf-8?B?U3R1?= | last post by:
Hi I have a visual studio 2005 project How do I use the Ajax control tool kit without having to creat a brand new project ? TIA Stu
0
1374
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= | last post by:
To all, I'm trying to use ajax in my web site project but everytime I hit the button on my webform the whole page posts back. The label control that I have in my update panel does what it is suppose to do without effecting any other controls outside the panel. Can you guys provide any insight? Please keep in mind that I'm trying to update an existing website and did not start a whole new project by using the template called, "ASP.NET...
3
2317
by: bbawa1 | last post by:
I just want to know that I have already a web application. I want to use ajax in one of my web forms. I installed AJAX in my machine. Now to use ajax in my web application should I create a new web site in VS 2005 and select ASP.Net AJAX - Enabled Site and then copy my all the web forms and datasets from my existing web application to this new AJAX application to be able to use AJAX. I am wondering if there is any other way to use...
1
1181
by: dgk | last post by:
I'm just looking into AJAX (mostly because I'd like to use the calendar extensions) and was wondering how to add it to a project already well underway. Having created an Ajax-enabled project from the template, I see that it adds system.web.extensions as a reference. Then there is a bunch of stuff in web.config. If I just add the reference and copy the stuff into the existing web.config, is that all? Plus, I guess, I have to install the...
8
19938
by: Jason | last post by:
Hello, I am trying to utilitze the AJAX Control toolkit in my asp.net project. I have added a reference to AjaxControlToolkit.dll, and in my page, added these lines of code: <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true" EnableScriptLocalization="true" ID="ScriptManager1" />
2
1894
by: Igor | last post by:
I just instaled AJAX framework. I can use it if I chose AJAX enabled aplication when I am creating new project. But I have some web aplication with no AJAX and I need to include it. It is not project, it is asp.net website. There is no .sln file or other visual studio project files. I started this web by chosing "New web site", not "New project". How can I include AJAX into this web? Thanks
7
6664
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a tabcontainer which has 1 panel already, however I want to try create the TabPanels dynamically. I followed the advice here: http://www.asp.net/learn/ajax-videos/video-156.aspx (3rd comment - Joe Stagner)
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.