 |
Creating your first ASP.NET AJAX 1.0 Application
Michael O'Brien (1538 views)
Creating your first ASP.NET AJAX 1.0 Application
Over the last year or so, AJAX has taken the web development world by storm. AJAX is short for Asynchronous JavaScript and XML and is an approach to building dynamic web applications that behave less like the static web pages we're used to and mo
|
 |
Returning a value from a PageMethod
Paul Hayman (2936 views)
Returning a value from a PageMethod using MS AJAX
'''NOTE: This is designed for v1.0.61025.0 of AJAXExtensionsToolbox.dll'''
If you've ever returned data from a web service using MS AJAX this technique will look familar.
Call the method from javascript by append PageMethods. to the front
|
 |
Rendering a Control to a String
Paul Hayman (1444 views)
Rendering a Control to a String
This is a really handy little function for rendering a control to a string. Really handy if you want to pass back rendered HTML from a StaticPageMethod or WebService.
#c#private static string GetRenderedControl(Control control)
#c#{
#c# HtmlTextWriter wri
|
 |
Programmatically registering a client script in the ScriptManager
Paul Hayman (1678 views)
Programmatically registering a client script in the ScriptManager
Registering a client script in the ScriptManager is easy
#c#ScriptManager.RegisterClientScriptInclude(Page, typeof(Page),
#c# "MyScript",
#c# Page.ResolveClientUrl("~/scripts/SomeJavascript.js"));
#c#
|
 |
Calling a static "page method" from Javascript using MS AJAX
Paul Hayman (5317 views)
Calling a static "page method" from Javascript using MS AJAX
Atlas gave us the ability to easily call Web Services from JavaScript. MS AJAX has gone one step further We can now call methods in the codebehine of the current page from Javascript. Here's how:
'''This is designed for v1.0.61025
|
 |
Launching an Ajax ModalPopupExtender from JavaScript
Paul Hayman (9539 views)
Launching an Ajax ModalPopupExtender from JavaScript
This is an updated version of the earlier (and very popular) {Atlas article}http://www.geekzilla.co.uk/ViewDAAE6AAB-0369-45C2-BE78-B8E6F876B4F4.htm
It is by far the simplest way to launch an Ajax ModalPopupExtender from javascript.
The
|