How do I use AJAX controls when my site was not created with AJAX enabled?

My site is not originally created with AJAX Conotrol Toolkit Web Site. How do I use the TabContainer and TabPanel?
0
mychucky
3/14/2007 5:19:39 PM
asp.net.ajax_control_toolkit 17816 articles. 1 followers. Follow

3 Replies
1109 Views

Similar Articles

[PageSpeed] 53
Get it on Google Play
Get it on Apple App Store

Step 1 - Add the following references to your project...

.NET: System.Web.Extensions

.NET: System.Web.Extensions.Design

PROJECT / BROWSE: AjaxControlToolkit

Step 2 - Modify your web.config (add in the bits you don't have)  

	<configSections>
		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
				<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
				</sectionGroup>
			</sectionGroup>
		</sectionGroup>
	</configSections>

	<system.web>
		<pages>
			<controls>
				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			</controls>
		</pages>
		<compilation debug="true">
			<assemblies>
				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
			</assemblies>
		</compilation>
		<httpHandlers>
			<remove verb="*" path="*.asmx"/>
			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
		</httpHandlers>
		<httpModules>
			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
		</httpModules>
	<system.webServer>
		<validation validateIntegratedModeConfiguration="false"/>
		<modules>
			<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
		</modules>
		<handlers>
			<remove name="WebServiceHandlerFactory-Integrated"/>
			<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
		</handlers>
	</system.webServer>

Step 3 - Top of your aspx page

 

<%

@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

I think that's about it!

0
Sohnee
3/15/2007 12:24:12 PM
Thanks! I'll give that a try. By the way, does the IIS server needs to have some kind of update for all my AJAX enabled pages to work?
0
mychucky
3/15/2007 1:37:41 PM

As long as you've installed the ASP.NET AJAX (downloadable from this site ajax.asp.net) then you'll be fine - it has to be installed on the machine you're using as the web server as it places itself in the GAC.

 

0
Sohnee
3/15/2007 3:46:16 PM
Reply:

Similar Artilces:

How to enable ajax (Use AJAX Controls) in my Web Control Library project
I have VS2005 with Ajax extended controls.   i have created a Web Control Library project, but i want to use ajax controls. is it possible.   I do not want to create a ajax enabled web site, but looking if any possible in my web control library project.   Please let me know and thanks in advance. D Hi, Yes. If you want to create User Control which contains a lot of web controls and Ajax control, you can create an User Control with Ajax Control to achieve it. If you want to create a Custom Control with Ajax, I suggest you build a new Extender. Please check the...

Ajax-Enabled Web Site vs Ajax Control Toolkit Web Site
I just start to use Ajax and noticed when I create a new web site from command menu, I have two options, ASP.NET AJAX-Enabled Web Site from "Visual Studio installed templates" and AJAX Control Toolkit Web Site from "My templates". The first option created prefix like <ajaxToolkit:###> while the second created prefix with <cc1:#####>. Can you point me the differences between those two templates.  Thanks! The Ajax Control Toolkit has around 40 controls which works on top of Core Ajax Framework. Starting with the Control Toolkit template will ensur...

using AJAX controls with a non AJAX enabled website?
I am using VWD 2005, and have just installed ASP.NET AJAX 1.0/Toolkit. I have an existing website which is not obviously AJAX enabled (because I have only just installed AJAX). If I want to use AJAX controls with this website do I first need to 'upgrade' the website to AJAX enabled? and if so how do I do this?   Cheers MArco Marco Gwiliani http://www.asp.net/LEARN/webcasts/webcast-141.aspxThanks and RegardsS.K.Vignesh----------------------Do remember to "Mark as answer" for this post or the post that helped you solve...

Enabling ajax to a non-ajax-enabled site
I REALLY dont want to start over with all i've done just to enable ajax... i understand that it's a matter of editing my web.config, but i've tried it several times and all i've gotten was build errors.... any chance someone can post an ajax enabled web.config with my parameters in there? I'd sooooooooo appreciate it!! Thanks!     <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings/> <connectionStrings> <add name="ConnectionString" connectionString="Data Source=*removed...

Concerns about using AJAX controls in a Non AJAX enabled Website
Platform VS 2005, VB.net  I created my existing asp.net Website without AJAX controls and today I ran into a situation where I need to use an AJAX control.  I download the AJAX Extensions and AJAX Control ToolKit.  I would like to add a calendar extension control to one of my existing webpages that has a Formview1 control. I thinking just like the example, add a script manager control to the page and the calendar extension and everything should work without me have to redo the whole web application or page in a AJAX enabled website.  I not su...

Ajax Control Toolkit vs. Ajax Enabled Web Site Template
Hi, After installed the Ajax extension, we have Ajax Enabled Web Site template in our Visual Studio, after installed the Control Toolkit extension, we have another Control Toolkit template, what is the difference of these two template? I can't figure out the different since both works for me. I believe the only difference is that the toolkit template automatically references the toolkit.  Both should have made the web.config changes needed to make the site ASP.NET AJAX enabled.Encosia - ASP.NET, AJAX, and more.Latest article: Using complex types to make calling services less… co...

Move from non-ajax site to ajax-enabled site
Hello all! please help! In tutorial video it was easy to start using ajax by creating ajax-enabled site.Now I have situation, when I developed complicated site without ajax, then installed ajax extensions.But: in "enabled" new site - ajax works perfect. In my old site - same code doesnt work at all. How could I enable ajax in already developed site??? (without rewriting it from the very beginning in ajax-enabled template)  Hi Vorlosha, What I've done, as a quick fix, is create a new ajax enabled website, copy the web.config, and paste it into your non-ajax web...

Configure AJAX extensions to enable AJAX controls ***WITHOUT*** using web.config file
I've inherited a legacy application that has many issues.  I'm not going to get into specifics or debates about what *should* be done; I know what *should* be done, but right now I have to <sigh> 'get 'er done'.So here's what I need to do:I need to get the AJAX controls working WITHOUT using the configuration file.  Of course things work great if I update the configuration file declaritively, but that's not option.Now with WF I can set my managers (such as adding the persistence service or adding the manual scheduler service) declaritively or in co...

Creating an Ajax Toolbox control using vb.net on the server
I am brand new to Ajax and I'm trying to figure out how to insert an Ajax toolkit HoverMenu control using vb.net on the server.  Is there any vb.net sample code available that demonstrates how to create controls from the Ajax Toolbox?  I'm not sure of (among other things) what namespaces need to be imported.  As I said, I'm brand new to this and need help getting started. Many thanks. Sheldon  Hi Sheldon,I made this sample which create hoverMenuExtender according to your requirements, please try it. <%@ Page Language="VB" %> <!DO...

How Do I Use AJAX and AJAX Control Toolkit In Visual Studio 2008 When Targetting .NET 2.0 Framework?
I have recently converted a lot of Visual Studio 2003 / .NET Framework 1.1 projects to Visual Studio 2008 / .NET Framework 2.0.  I want to be able to use AJAX and AJAX Control Toolkit under Visual Studio 2008 while we target the .NET 2.0 Framework.  Unfortunately, we cannot target .NET Framework 3.5 because we need Windows 2003 Server for that and we only have Windows 2000.  I do not want to use Visual Studio 2005 either.  Is it possible to do what I want given these conditions?You can't stop entropy so why even try? The simple answer is yes.  What pr...

Use of Ajax in WebSite which is not Ajax enabled.
How to use Ajax in a web site which is not Ajax enabled. When i tried to implemet the same i recieved an error saying "Sys" not defined. What should i do now.  "Sys is not defined" error - ASP.NET Forumsdid you try to just copy web.config file of a Ajax Enabled Application to your Web Application  which is not Ajax Enabled ??Thanx, [KaushaL] || BloG || Profile || Microsoft MVP"I would love to change the world, but they won’t give me the source code"Don't forget to click "Mark as Answer" on the post that helped you.This credits that memb...

Converting Non Ajax enabled project - to an Ajax enabled
I have a new requirement which needs a calendar control as in the ajax toolkit.But my application is in VS 2005 and is not an ajax enabled project. How difficult is it to convert the project to an ajax enabled one?If it is relatively easy to do it, will the conversion affect the behavior of the other pages within the projectwhich essentially dont use ajax functionality? Can someone please advise ? Hi,Converting your web application to Ajax enabled is very simple. It won't affect the other pages in you application.You can read about it in the following links:How Do I:Add ASP.NET AJAX ...

ajax.net controls used in custom composite controls?
I am creating an events calendar that uses the accordion to display the events for the selected day.  The problem I'm having is that the accordion is not responding to any client side events.  I would really like to find a good "How to" article for building composite controls that incorporate an ajax.net control like the accordion....

Does the AJAX Control Toolkit always use AJAX?
I have not seen this question answered anywhere yet, but does anyone know if the Control Toolkit always uses Async postbacks for all its operations. For instance the hovermenu or filteredtexbox, for example, should not need to do an async postback. As far as I can see the hover menu does not, but i could be wrong. Does anyone know if this is the case and if so do you know which controls do not postback? We don't have this information compiled anywhere, but it's generally simple enough to tell from having a look at the code. FilteredTextBox, for example, doesn't do any postbacks of any...

Web resources about - How do I use AJAX controls when my site was not created with AJAX enabled? - asp.net.ajax_control_toolkit

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Fitness is ‘escalating beyond control'
HEALTH experts are warning parents that obsessive exercise can be linked to life-threatening eating disorders in teens, amid an explosion of ...

Apple again controls holiday sales, accounting for 49% of activations as phablets dominate
... For more information about iOS Devices , Apple , and iPhone continue reading at 9to5Mac . What do you think? Discuss "Apple again controls ...

BMW thinks the future of car UI is gesture control
BMW This is BMW's tease of the new gesture control UI for CES. 3 more images in gallery BMW has just given us a brief teaser ahead of CES ...

Iraq forces in 'full control' of central Ramadi
Iraqi forces are now in "full control" of central Ramadi but Islamic State's "pockets of resistance" remain, a government official tells the ...

North Korea's Red Star OS leaves the government in control of computers
... least not by most people's standards. Like China , the socialist state is keen to embrace the power of the internet, but wants to retain control ...

You can control this family’s Christmas lights over the Internet
... Horrible disaster waiting to happen? You be the judge. You've never met Ken or Rebecca-Ellen and you probably never will. But you can control ...

The 10 Dumbest Gun Control Political Cartoons of 2015
Perhaps not just 2015. Maybe the dumbest of all times . Say, you mean stricter gun control laws will stop terrorism? No one tell the 300+ victims ...

pics: Royal Trux @ Webster Hall w/ IUD, Blues Control & Lexie Mountain
photos by P Squared Royal Trux @ Webster Hall, 12/19/2015 "It just seemed pretty natural," Herrema said. "I guess when you know somebody that ...

You can control this family's Christmas lights over the internet and the results are mesmerising
... as they see fit. Visitors are greeted with a live webcam of the Fairbanks, Alaska house — pictured above — as well as a bank of controls for ...

Resources last updated: 12/29/2015 3:42:08 PM