{"id":386,"date":"2010-10-01T02:16:26","date_gmt":"2010-10-01T02:16:26","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=386"},"modified":"2010-10-01T02:16:26","modified_gmt":"2010-10-01T02:16:26","slug":"%e9%a1%b5%e9%9d%a2%e9%81%8d%e5%8e%86","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2010\/10\/01\/%e9%a1%b5%e9%9d%a2%e9%81%8d%e5%8e%86\/","title":{"rendered":"\u9875\u9762\u904d\u5386"},"content":{"rendered":"<pre lang=\"csharp\">\r\n public static void format(System.Web.UI.Control page, bool bFalg)\r\n        {\r\n            int nPageControls = page.Controls.Count;\r\n            for (int i = 0; i &lt; nPageControls; i++)\r\n            {\r\n                foreach (System.Web.UI.Control control in page.Controls[i].Controls)\r\n                {\r\n                    if (control.HasControls())\r\n                    {\r\n                        format(control, bFalg);\r\n                    }\r\n                    else\r\n                    {\r\n                        if (control is TextBox)\r\n                            (control as TextBox).Enabled = bFalg;\r\n \r\n                       if (control is Button)\r\n                            (control as Button).Enabled = bFalg;\r\n                        if (control is CheckBox)\r\n                            (control as CheckBox).Checked = bFalg;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>public static void format(System.Web.UI.Control page, b [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-386","post","type-post","status-publish","format-standard","hentry","category-aspdotnet"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}