ASP.NET Messagebox - Server and Client - Web Dev And Stuff
Sunday, September 14, 2008 1:15 PM djsolid

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
ShowMessageBox(type,Header,Text,Width,Height) function.

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!

Screenshots

image.axd

image1.axd

image2.axd 

kick it on DotNetKicks.com

Filed under: , , , , , ,

Comments

No Comments