Geeks With Blogs

News

Microsoft MVP


DZone MVB


Moderator at CodeASP.NET


Quiz Master







free counters
Free counters
Added on January 19,2012


Follow Me @vmsdurano

A bit About Me



Disclaimer
The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers. Nor does it represent the opinion of my dog, because I don’t have one.


Vinz' Blog (ProudMonkey) "Code, Beer and Music ~ my way of being a programmer"

In order to hide those, we can set the BorderStyle and the PartChromeType attribute of the WebZone to none after we set the display mode of WebPartManager to browse just like below:

 

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!Page.IsPostBack)

        {

            WebPartManager1.DisplayMode = WebPartManager.BrowseDisplayMode;

            foreach (WebPartZone wz in WebPartManager1.Zones)

            {

                wz.BorderStyle = BorderStyle.None;

                wz.PartChromeType = PartChromeType.None;

            }

        }

    }

 

That’s simple!

 

Technorati Tags: ,,
Posted on Tuesday, August 11, 2009 8:31 PM ASP.NET , WebParts , Tips&Tricks | Back to top


Comments on this post: Hide WebPart Header and Border on BrowseDisplayMode

comments powered by Disqus

Copyright © Vincent Maverick Durano | Powered by: GeeksWithBlogs.net