Tuesday, June 12, 2007

Atlas and Custom Errors

If you use Atlas versions of ASP .NET AJAX, it is a known fact that you cannot redirect the user server-side from an event raised by a control that is in an Update Panel. We can find ways to deal with this problem, but what happens in the particular case of Errors?

Error handling code often implies using Application_Erorr function in Global.asax and automate redirection to a page where an error message is posted - "An error has occurred. The administrator has been notified" is my favourite :) (with DB logging of course)

If an error occurs within a post-back triggered by a control in an Update Panel, we may be surprised to see that the user is not redirected anywhere and the error is shown in an alert message box.

Solutions? First of all, let the error be handled by the Application_Error code. For that you can use one of the Script Manager events. There you just throw the exception:

Protected Sub ScriptManager_PageError(ByVal sender As Object, ByVal e As Microsoft.Web.UI.PageErrorEventArgs) Handles ScriptManager.PageError   

  Throw e.Error

End Sub

Second, you would also like the redirect to work - unfortunately, only .NET Ajax offers a solution for that - the Script manager has a property called AllowCustomErrors that, when set to true, allows the application to handle errors through the Custom Errors settings in web.config. More details here.

Posted by Madalina at 10:19:44 | Permanent Link | Comments (0) |

Thursday, November 23, 2006

Meebo!

www.meebo.com

This is a new utilitary that allows you to sign in all your messenger accounts with no trouble at all, anywhere and anytime. You don't need to install all the beta releases of the messengers, you just need a browser and you are set. You can login more accounts at once and your contacts will appear in the same messenger-like window:

All the conversation windows will appear in the browser window. No popups, no flashing annoying taskbar.

Meebo is built with AJAX ;)

Posted by Madalina at 11:01:02 | Permanent Link | Comments (0) |

Wednesday, April 05, 2006

Atlas "By Hand"

Ok, nice Atlas, nice controls, nice functionality... :)

There are two things that I've stumbled upon while working with Atlas CTPs:

1. not all the properties of the controlls are included in Intellisense. So, even though you have no guidance with that, if you find a property in the documentation, use it with confidence - it exists :)

2. after installing the CTP, I worked with the controls directly in Source View, by manually writing them. But the other day, watching an Atlas tutorial, I saw that the presenter had the controls in the VS 2005 Toolbox. Searching the intenet, I found that this can be accomplished by draggind a certain dll to the Toolbox:

            http://forums.asp.net/thread/1187213.aspx

 So, Atlas "By hand", isn't it ? :)

 

Posted by Madalina at 10:52:53 | Permanent Link | Comments (0) |

Friday, March 31, 2006

ATLAS March CTP

Atlas march CTP has been launched.

http://atlas.asp.net/default.aspx?tabid=47

Also, Atlas has its own site now :D.

http://atlas.asp.net/docs/Default.aspx

Enjoy! I sure will :)

Posted by Madalina at 19:52:35 | Permanent Link | Comments (4) |

Monday, March 13, 2006

ASP.NET Atlas

Atlas on the market!! :)

 Nikhil Kothari provides a brief overview of ASP.NET "Atlas", a framework to build rich Web apps on top of ASP.NET 2.0. The demo shows an app that uses the new server controls from the December CTP to incrementally enrich standard ASP.NET pages and an app that shows client-centric app development.

 
 
Posted by Madalina at 18:46:03 | Permanent Link | Comments (0) |

Friday, January 13, 2006

ATLAS

http://atlas.asp.net/quickstart/default.aspx

http://www.nikhilk.net/

Posted by Madalina at 13:20:57 | Permanent Link | Comments (0) |