Sunday, September 14, 2008 1:15 PM
ASP.NET Messagebox - Server and Client
Today I ran into an excellent post of Bill Beckelman about a server side asp.net message box.
More info you can find on this post. And I thought what if I wanted to use it via the client ? So I decided to extended a little further and to add a client-side behavior.
How can be used via the client?
To use the MessageBox via client you should call the
The first argument is the type. At the moment possible values are info,error,success and warning.
The second is the the header of the messagebox and the third is the text. You can also use html...!
The other two are width and height of the message box.
Example : ShowMessageBox('info','A Simple Header','Just some text',400,125);
So simple :)
You can view a demo or you can download the updated version.
Again credits to Bill Beckelman!
Filed under: Web Development, ASP.NET, AJAX, Modal, AjaxTookit, MessageBox, Client Side