It's easy to enable your existing ASP.Net 2.0 Web Service to accept client side script call as following:
First, copy the tags described in post "Enable AJAX for Your Existing ASP.Net 2.0 Website Project".
Second, add "[System.Web.Script.Services.ScriptService()]" attribute for your web service class.
That's it.
Tuesday, April 3, 2007
Monday, April 2, 2007
Enable AJAX for Your Existing ASP.Net 2.0 Website Project
Actually, it's very easy to enable AJAX support for your existing ASP.Net 2.0 website project as following steps:
- Create a AJAX enabled website project and open the web.config file of this project.
- Copy the "configSections", "Pages", "compilation", "httpHandlers", "httpModules", "system.web.extensions", and "system.webServer" tags into your existing website project's web.config file. Please note that "configSections" should be the first child of "configuration" tag.
Friday, March 30, 2007
Install ASP.Net AJAX extension and AJAX toolkit components
Pre-requirement: .Netframework 2.0 installed and Visual Web Developer 2005 (or full version of Visual Studio 2005). You can find them here.
1. Download ASP.NET 2.0 AJAX Extensions 1.0 and Control Toolkit from here.
1. Download ASP.NET 2.0 AJAX Extensions 1.0 and Control Toolkit from here.
2. Run "ASPAJAXExtSetup.exe" to install AJAX Extensions 1.0.
3. Extract the none source code version of Control Toolkit to a folder.
4. Run "AjaxControlExtender.vsi" in the "AjaxControlToolkit-NoSource\AjaxControlExtender" folder to install the AJAX Control Toolkit Web Site template to Visual Web Developer 2005 (or full version of Visual Studio 2005).
5. In Visual Web Developer 2005 (or full version of Visual Studio 2005), add a new toolbox tab named "AJAX Toolkit".
6. Right-click the added "AJAX Toolkit" tab, select "Choose Items...". Browse to "AjaxControlToolkit-NoSource\SampleWebSite\Bin" folder and select "AjaxControlToolkit.dll". The AJAX Toolkit controls will be added into "AJAX Toolkit" tab.
Now, you are ready to go playing with ASP.NET AJAX development.
Now, you are ready to go playing with ASP.NET AJAX development.
Subscribe to:
Posts (Atom)