{"id":135,"date":"2006-09-18T22:23:49","date_gmt":"2006-09-18T21:23:49","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=135"},"modified":"2006-09-26T09:20:28","modified_gmt":"2006-09-26T08:20:28","slug":"adding-client-side-message-boxes-in-your-aspnet-web-pages","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=135","title":{"rendered":"Adding Client-Side Message Boxes in your ASP.NET Web Pages"},"content":{"rendered":"<p>One of the useful features in a Windows desktop application that many programmers and end-users take for granted is  message boxes. Two of the most common types of message boxes are alerts and confirms.  A confirm message box prompts the user if they want to continue, and provides two choices: &#8220;OK&#8221; and &#8220;Cancel&#8221;.  Clicking &#8220;OK&#8221; confirms the action, while &#8220;Cancel&#8221; cancels it.<\/p>\n<blockquote>\n<pre>Private Sub Page_Load(ByVal sender As System.Object, _\r\nByVal e As System.EventArgs) Handles MyBase.Load\r\nIf (Not Page.IsPostBack) Then\r\n<strong>Me.BtnDelete.Attributes.Add(\"onclick\", _\r\n\"return confirm('Are you sure you want to delete?');\")<\/strong>\r\nEnd If\r\nEnd Sub<\/pre>\n<\/blockquote>\n<p><a target=\"_blank\" href=\"http:\/\/aspnet.4guysfromrolla.com\/articles\/021104-1.aspx\">http:\/\/aspnet.4guysfromrolla.com\/articles\/021104-1.aspx<\/a><\/p>\n<p><a target=\"_blank\" href=\"http:\/\/www.dotnetjunkies.com\/Article\/A72FCFD7-3874-408A-8FCE-541BEC74C704.dcik\">http:\/\/www.dotnetjunkies.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the useful features in a Windows desktop application that many programmers and end-users take for granted is message boxes. Two of the most common types of message boxes are alerts and confirms. A confirm message box prompts the user if they want to continue, and provides two choices: &#8220;OK&#8221; and &#8220;Cancel&#8221;. Clicking &#8220;OK&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,4],"tags":[],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-code-snippets","category-aspnet","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135"}],"version-history":[{"count":0,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}