Paul Mendoza C# blog
Tuesday, June 13, 2006
  AJAX, ATLAX, ASP.NET and Blogger
The last couple of evenings I've been messing around with adding AJAX to my blog which is a Blogger account so that the comment will show up in a modal window but so far all I've got is that div tag that appears at the top of the page that really just contains an IFrame. Carolann wants me to AJAX-ify her blog for her when I'm done with mine but I'm not sure if that's going to happen. I wish there was a better way to do comments with it.

What I did figure out though was a few things on getting my Blogger to create ASP.NET pages and not hurt me when it can't.

If you weren't aware, in an ASP.NET page, you don't actually have to put your page declaration for the Page object as the first item on the page. You can actually embed it inside of an HTML element. Why would you want to do this? Well, what if your aspx page is actually going to render as a .html page. We could do something like this then.

The nice part about this is that it will hide the part of the code if the page renders on as a HTML page which will happen in Blogger.

Also, you will need to change the Publishing> Blog Filename to "whatever.aspx" instead of "whatever.html" so that you can render the main page as an asp.net page. Also, under Archiving, change the Archive Filename to "Archive.aspx" instead of the default of "Archive.html".

Now that we've done this, we can start using inline ASP.NET code in our pages. I'm pretty sure that inline code is an ASP.NET 2.0 feature so your IIS server needs to be setup and running .NET 2.0.

What I've been trying to do is get the Atlas modal window to popup a dynamically generated div tag that I'm creating server side before poping up the div but for some reason there is a confict between Atlast UpdatePanel and Atlas modal window when I try to perform the operation. I'm sure there is a work around, I just haven't found it yet. I might post the source code if anyone is interested in seeing what I've created.
 
Comments: Post a Comment





<< Home
I am currently an ASP.NET, C# developer working on MangosteenNation.com, a XanGo website for helping people build their businesses. I am also pursuing a degree at CSU San Marcos in Southern California.

XanGo at Mangosteen Nation

Archives
October 2005 / November 2005 / December 2005 / January 2006 / February 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / August 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / April 2007 / May 2007 / June 2007 / August 2007 / February 2008 / August 2008 /


Powered by Blogger

Subscribe to
Posts [Atom]