How to create a webpart with chrome type
If we want to customize the layout a webpart – say don’t want the border and title, or only need border or only need title etc, we will do it through UI by setting the Chrome type of the corresponding webpart.
Here I just want to know how we can set this one by default whenever we create custom webpart.
Here I just want to know how we can set this one by default whenever we creating custom webpart. We can accomplish this by setting the ChromeType property of the webpart in the CreateChildControls() method. Here is the sample code snippet.
https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.partchrometype.aspx
Comments
- Anonymous
November 14, 2008
PingBack from http://blog.a-foton.ru/index.php/2008/11/15/how-to-create-a-webpart-with-chrome-type/