This helps u to convert ordinary ASP.NET page into AJAX Enabled page Step 1: File -> Open your Project Step 2: To enable the page to AJAX Enabled Website add the following code to wen-config file in the solution Explorer.
<?xml version=”1.0″?>
<configuration>
<system.web>
<pages> </pages > <compilation debug =”true” strict =”false” explicit =”true”/> </system.web > </configuration >
Code: <?xml version=”1.0″?> <configuration> <configSections> <sectionGroup name=”system.web.extensions” type=”System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″> <sectionGroup name=”scripting” type=”System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″> <section name=”scriptResourceHandler” type=”System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″ requirePermission=”false” allowDefinition=”MachineToApplication”/> <sectionGroup name=”webServices” type=”System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″> <section name=”jsonSerialization” type=”System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″ requirePermission=”false” allowDefinition=”Everywhere”/> <section name=”profileService” type=”System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″ requirePermission=”false” allowDefinition=”MachineToApplication”/> <section name=”authenticationService” type=”System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″ 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, PublicKeyToken1bf3856ad364e35″/> </controls> </pages> <!– Set compilation debug=”true” to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. –> <compilation debug=”true”> <assemblies> <add assembly=”System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″/> </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, PublicKeyToken1bf3856ad364e35″/> <add verb=”*” path=”*_AppService.axd” validate=”false” type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″/> <add verb=”GET,HEAD” path=”ScriptResource.axd” type=”System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″ validate=”false”/> </httpHandlers> <httpModules> <add name=”ScriptModule” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken1bf3856ad364e35″/> </httpModules> </system.web> <system.web.extensions> <scripting> <webServices> <!– Uncomment this line to customize maxJsonLength and add a custom converter –> <!– <jsonSerialization maxJsonLength=”500″> <converters> <add name=”ConvertMe” type=”Acme.SubAcme.ConvertMeTypeConverter”/> </converters> </jsonSerialization> –> <!– Uncomment this line to enable the authentication service. Include requireSSL=”true” if appropriate. –> <!– <authenticationService enabled=”true” requireSSL = “true|false”/> –> <!– Uncomment these lines to enable the profile service. To allow profile properties to be retrieved and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and writeAccessProperties attributes. –> <!– <profileService enabled=”true” readAccessProperties=”propertyname1,propertyname2″ writeAccessProperties=”propertyname1,propertyname2″ /> –> </webServices> <!– <scriptResourceHandler enableCompression=”true” enableCaching=”true” /> –> </scripting> </system.web.extensions> <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, PublicKeyToken1bf3856ad364e35″/> </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, PublicKeyToken1bf3856ad364e35″/> <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, PublicKeyToken1bf3856ad364e35″/> <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, PublicKeyToken1bf3856ad364e35″/> </handlers> </system.webServer> </configuration>
source: naveenpn.wordpress
Related Tutorials
Get rid of the IE iframe “click” The navigation "click" happens with iframes, and be a nuisance if you are trying to use iframes in a non-navigational way.Creating a chat script with PHP and Ajax, part 1 In this multi-part tutorial series I will show you how to create your own chat script with PHP and Ajax.Slideshare Gallery Viewer, no API needed For developers, having an API available to access information from your favorite site is a good thing. It’s not always necessary, though, as shown by Christian Heilmann in his latest post.10 Autocomplete AJAX drop down list As I understand it Portal includes some of the Dojo AJAX library. I need to implement a field that helps the user select a city name. As the user types I want it to call back to the server to get a list of matching items to allow the user to select from.The Core Javacript Library for JSON Widgets This post explains how to make modifications to your New Blogger template, and also houses the latest Javascript JSON library code. This will make it easier for my others articles (and ultimately my readers) as those articles will be referring to this posLogin using Ajax and PHP Introduction
In the site root we have to create these file, index.php,login.php, config.php and a folder AJAX with ajax_framework.js.
Saving Your Comment