{"id":150,"date":"2009-06-11T11:57:40","date_gmt":"2009-06-11T16:57:40","guid":{"rendered":"http:\/\/hoolihan.net\/blog-tim\/?p=150"},"modified":"2009-06-11T11:57:40","modified_gmt":"2009-06-11T16:57:40","slug":"how-i-use-aspnet-skins-and-themes","status":"publish","type":"post","link":"http:\/\/hoolihan.net\/blog-tim\/2009\/06\/11\/how-i-use-aspnet-skins-and-themes\/","title":{"rendered":"How I Use ASP.Net Skins and Themes"},"content":{"rendered":"<p>Recently reading some discussion of themes, and skins were listed as bad, because they cut out the designer and required duplication for any non-server control element.<\/p>\n<p>As in the following: I want all my text input&#8217;s to have a blue background.\u00a0 So I said background=&#8221;blue&#8221; in an asp.net skin file, and create a blue style for any raw input tags that are created not using asp.net.\u00a0 Duplication.\u00a0 Duplication is bad.<\/p>\n<p>The way I use this, is the following.\u00a0 Create a css class for that, and assign the class to asp:Textbox tags in the skin file.\u00a0 Now that same class can be used across server controls and plain ol&#8217; html alike.<\/p>\n<p>Why is the skin file still good?\u00a0 I didn&#8217;t have to specify a css class for everyone of my Textbox server controls&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently reading some discussion of themes, and skins were listed as bad, because they cut out the designer and required duplication for any non-server control element. As in the following: I want all my text input&#8217;s to have a blue background.\u00a0 So I said background=&#8221;blue&#8221; in an asp.net skin file, and create a blue style [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,18,24],"tags":[74],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-aspnet","category-programming","category-web","tag-aspnet-themes"],"_links":{"self":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":0,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"wp:attachment":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}