<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Dev And Stuff : AjaxTookit</title><link>http://weblogs.asp.net/johnkatsiotis/archive/tags/AjaxTookit/default.aspx</link><description>Tags: AjaxTookit</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>ASP.NET Messagebox - Server and Client</title><link>http://weblogs.asp.net/johnkatsiotis/archive/2008/09/14/asp-net-messagebox-server-and-client.aspx</link><pubDate>Sun, 14 Sep 2008 10:15:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6624513</guid><dc:creator>djsolid</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/johnkatsiotis/rsscomments.aspx?PostID=6624513</wfw:commentRss><comments>http://weblogs.asp.net/johnkatsiotis/archive/2008/09/14/asp-net-messagebox-server-and-client.aspx#comments</comments><description>&lt;p&gt;Today I ran into an excellent post of &lt;a href="http://beckelman.net/" mce_href="http://beckelman.net/"&gt;Bill Beckelman&lt;/a&gt; about a server side asp.net message box.&lt;/p&gt;  &lt;p&gt;More info you can find on &lt;a href="http://beckelman.net/post/2008/07/15/ASPNET-Popup-Message-Box-User-Control.aspx" target="_blank" mce_href="http://beckelman.net/post/2008/07/15/ASPNET-Popup-Message-Box-User-Control.aspx"&gt;this post&lt;/a&gt;. 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.&lt;/p&gt;  &lt;h1&gt;&amp;nbsp;&lt;/h1&gt;  &lt;h1&gt;How can be used via the client?&lt;/h1&gt;  &lt;p&gt;To use the MessageBox via client you should call the    &lt;br&gt;&lt;b&gt;ShowMessageBox(type,Header,Text,Width,Height) function.&lt;/b&gt;     &lt;br&gt;&lt;/p&gt;  &lt;p&gt;The first argument is the type. At the moment possible values are &lt;b&gt;&lt;u&gt;info,error,success and warning&lt;/u&gt;&lt;/b&gt;.     &lt;br&gt;The second is the the header of the messagebox and the third is the text. You can also use html...!     &lt;br&gt;The other two are width and height of the message box.     &lt;br&gt;&lt;/p&gt; &lt;b&gt;&lt;/b&gt;  &lt;p&gt;&lt;b&gt;Example : ShowMessageBox('info','A Simple Header','Just &lt;b&gt;some&lt;/b&gt; text',400,125);&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;So simple :)&lt;/p&gt;  &lt;p&gt;You can view a &lt;a href="http://samples-john.katsiotis.com/muc/" target="_blank" mce_href="http://samples-john.katsiotis.com/muc/"&gt;demo&lt;/a&gt; or you can &lt;a href="http://samples-john.katsiotis.com/muc/MessageBoxUserControl.rar" target="_blank" mce_href="http://samples-john.katsiotis.com/muc/MessageBoxUserControl.rar"&gt;download&lt;/a&gt; the updated version.&lt;/p&gt;  &lt;p&gt;Again credits to &lt;a href="http://beckelman.net/" mce_href="http://beckelman.net/"&gt;Bill Beckelman&lt;/a&gt;!&lt;/p&gt;  &lt;p&gt;Screenshots&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image.axd_2.png" mce_href="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image.axd_2.png"&gt;&lt;img src="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image.axd_thumb.png" style="border-width: 0px;" alt="image.axd" mce_src="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image.axd_thumb.png" border="0" width="291" height="130"&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image1.axd_2.png" mce_href="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image1.axd_2.png"&gt;&lt;img src="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image1.axd_thumb.png" style="border-width: 0px;" alt="image1.axd" mce_src="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image1.axd_thumb.png" border="0" width="291" height="131"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image2.axd_2.png" mce_href="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image2.axd_2.png"&gt;&lt;img src="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image2.axd_thumb.png" style="border-width: 0px;" alt="image2.axd" mce_src="http://weblogs.asp.net/blogs/johnkatsiotis/WindowsLiveWriter/ASP.NETMessageboxServerandClient_BA39/image2.axd_thumb.png" border="0" width="290" height="130"&gt;&lt;/a&gt;&amp;nbsp; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fweblogs.asp.net%2fjohnkatsiotis%2farchive%2f2008%2f09%2f14%2fasp-net-messagebox-server-and-client.aspx" mce_href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fweblogs.asp.net%2fjohnkatsiotis%2farchive%2f2008%2f09%2f14%2fasp-net-messagebox-server-and-client.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fweblogs.asp.net%2fjohnkatsiotis%2farchive%2f2008%2f09%2f14%2fasp-net-messagebox-server-and-client.aspx&amp;amp;fgcolor=000000&amp;amp;bgcolor=CCFF00&amp;amp;cfgcolor=333333" alt="kick it on DotNetKicks.com" mce_src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fweblogs.asp.net%2fjohnkatsiotis%2farchive%2f2008%2f09%2f14%2fasp-net-messagebox-server-and-client.aspx&amp;amp;fgcolor=000000&amp;amp;bgcolor=CCFF00&amp;amp;cfgcolor=333333" border="0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6624513" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/johnkatsiotis/archive/tags/Web+Development/default.aspx">Web Development</category><category domain="http://weblogs.asp.net/johnkatsiotis/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/johnkatsiotis/archive/tags/AJAX/default.aspx">AJAX</category><category domain="http://weblogs.asp.net/johnkatsiotis/archive/tags/Modal/default.aspx">Modal</category><category domain="http://weblogs.asp.net/johnkatsiotis/archive/tags/AjaxTookit/default.aspx">AjaxTookit</category><category domain="http://weblogs.asp.net/johnkatsiotis/archive/tags/MessageBox/default.aspx">MessageBox</category><category domain="http://weblogs.asp.net/johnkatsiotis/archive/tags/Client+Side/default.aspx">Client Side</category></item></channel></rss>