{"id":677,"date":"2008-09-16T09:50:08","date_gmt":"2008-09-16T14:50:08","guid":{"rendered":"http:\/\/blogs.devhorizon.com\/reza\/?p=677"},"modified":"2008-09-16T09:51:43","modified_gmt":"2008-09-16T14:51:43","slug":"idesigntimehtmlprovider","status":"publish","type":"post","link":"https:\/\/blogs.devhorizon.com\/reza\/2008\/09\/16\/idesigntimehtmlprovider\/","title":{"rendered":"IDesignTimeHtmlProvider Interface"},"content":{"rendered":"<p>You can implement this interface to have a different HTML rendition for your Web parts and controls in SharePoint Designer than what you see in the browser. Well, if that&#8217;s what you are looking for, <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.sharepoint.webcontrols.idesigntimehtmlprovider.aspx\">IDesignTimeHtmlProvider <\/a>interface is definitely your friend!<\/p>\n<p>As you can see in the pictures below , my simple Web part renders two different type of messages at run-time and design-time. For more information see my notes in the community content of this <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.sharepoint.webcontrols.idesigntimehtmlprovider.aspx\">page<\/a>.<\/p>\n<p><strong>Browser:<\/strong><br \/>\n<img decoding=\"async\" src=\"https:\/\/blogs.devhorizon.com\/reza\/wp-content\/uploads\/2008\/09\/idesignviewbrwoser.jpg\" alt=\"idesignviewbrwoser.jpg\" \/><\/p>\n<p><strong> SharePoint Desginer:<br \/>\n<\/strong> <img decoding=\"async\" src=\"https:\/\/blogs.devhorizon.com\/reza\/wp-content\/uploads\/2008\/09\/idesignviewspd.jpg\" alt=\"idesignviewspd.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can implement this interface to have a different HTML rendition for your Web parts and controls in SharePoint Designer than what you see in the browser. Well, if that&#8217;s what you are looking for, IDesignTimeHtmlProvider interface is definitely your friend! As you can see in the pictures below , my simple Web part renders [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-moss-2007"],"_links":{"self":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":0,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}