Welcome to Strong Coders Community Sign in | Join | Help

Blog ( Of Ryan Olshan)

News

  • About Ryan Olshan

    Join StrongTypes - Free Generics Help By Email
    Join StrongTypes

    Community Credit Winner

    View my MVP profile

    The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are my own personal opinions and do not represent my employer's view in any way.

    Subscribe to Rolog via My AOL
    Subscribe to Rolog via Bloglines


    Subscribe to Rolog via Feedburner

    Furl Rolog




    Subscribe to Rolog via Newsburst


    Subscribe to Rolog via Pluck

    Add Rolog to Technorati Favorites




    Thycotic Secret Server

.NET Websites

  • => StrongTypes.com <=
  • Community Credit
  • DotNetCharity.com
  • DotNetSlackers
  • EasyListBox
  • SystemNetMail.com
  • SystemWebMail.com

Blogroll

  • Alex Campbell
  • Carlos Magalhaes
  • Chris Taylor
  • Darren Neimke
  • David Betz
  • Eric Smith
  • Rob Caron
  • Rob Howard
  • Sam Gentile
  • Scott Guthrie
  • Scott Mitchell
  • Tess
  • Wesner Moise
  • Jason Alexander
  • Bill Ryan
  • Steve Smith
  • Sahil Malik
  • David Silverlight

Other Websites

  • 911 Pigeon Alert
  • Pacific Wildlife Project

Strong Coder Bloggers

  • Dean Fiala
  • Kevin Jones

Thycotic Bloggers

  • Bryant Smith
  • John Morales
  • Jonathan Cogley

Yahoo! Groups

  • => StrongTypes <=
  • AspNet2
  • AspNet20GridView
  • PayPalDevDotNet
  • RubyOnRails
  • VSTS

MagicAjax - Easy as 1, 2, 3

A couple of days ago I discovered MagicAjax. MagicAjax simplifies creating Ajax enriched content. So, how do you use MagicAjax?

Click here to download MagicAjax.

Step 1  Add a reference to the MagicAjax assembly to your project or a copy of it to the bin directory if you are not using an IDE. Also, add the following HTTP module reference to Web.config:

< system.web >
    < httpModules >
       < add name = " MagicAjax " type = " MagicAjax.MagicAjaxModule, MagicAjax " />
    httpModules >
system.web >

Step 2 Add the following to top of the web form you would like to use MagicAjax on:

<% @ Register TagPrefix ="ajax" Namespace ="MagicAjax.UI.Controls" Assembly ="MagicAjax" %>

Step 3 Use the AjaxPanel control as a place holder for content that you would like to enable Ajax on.

< ajax : AjaxPanel ID ="AjaxPanel1" runat ="server">
   [Content here]
ajax : AjaxPanel >

There you have it. It's as easy as 1, 2, 3.

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: Tuesday, December 20, 2005 3:39 PMby Ryan Olshan
Filed under: ,

Comments

Leonardo said:

it's amazing !
# January 3, 2006 12:53 PM

Ekrmweb said:

Thanks , It's what I've been looking for exactly!
# January 6, 2006 10:58 AM

Cliff Spence said:

This is incredible, man, seriously. Thanks!

One question, though, is there any way I can get the output to validate as XHTML? The option to use the ID attribute instead of the Name attribute, getting rid of the '$' character in the IDs, not wrapping everything within span tags, no proprietary attributes rendered, 'type' attribute used in script tags, etc.?
# January 24, 2006 8:58 PM

Ryan Olshan said:

I think the XHTML thing is something that will be available in the next release. The only way to change that behavior would be to modify the code, but I'd ask that question to the MagicAjax forums http://forum.magicajax.net .

Ryan
# January 25, 2006 10:49 AM
New Comments to this post are disabled