WebParts

Hide WebPart Header and Border on BrowseDisplayMode

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.BrowseDispla... foreach (WebPartZone wz in WebPartManager1.Zones) { wz.BorderStyle = BorderStyle.None; wz.PartChromeType = PartChromeType.None; } } } That’s simple! Technorati Tags: ASP.NET,WebParts,TipsTricks...

ASP.NET WebPart FAQ

After a year of answering questions at the WebParts and Personalization forum section, I consider the following items below as “frequently asked questions”. I decided to write this so that I can point them to this post whenever I find a question that can be found here. The following are the list of items that I consider as FAQ: 1. How to Get Started with ASP.NET WebParts? ASP.NET Web Parts Overview ASP.NET WebPart Controls Implementing ASP.NET WebParts with Different Authentication modes Video: Utilizing...

ASPNET WebPart FAQ: Accessing Controls from UserControls in ASPX page

I decided to write this example because I always encounter this type of questions at the asp.net WebParts and Personalization forums. Many of us have used UserControls as WebParts so that we can incorporate different server controls in a single WebPart element and there are times we need to retrieve or pass a value to a Control that‘s inside a UserControl. So in this example, I will show different ways on how to get or pass values to a control that is residing within a UserControl. Suppose that we...

Comparison Between Standard WebParts, ASPNET Futures WebParts and Custom WebParts in ASPNET 2.0

I decided to post this because I wan't to share this information that I have gathered during my investation about ASPNET WebParts last 2007. Maybe this will be useful for those who are using ASPNET WebParts in ASPNET 2.0. Basically this information shows the difference between the Standard WebParts that shipped in ASP.NET 2.0, ASPNET Futures and My Custom WebPart with Custom Verbs. Main OBJECTIVES: * Allows cross browser drag and drop capability (can be moved between WebZones) * Ajax enabled Findings...

Enhanced Custom WebPartZone with Custom Move Option Verbs in ASP.NET 2.0

This example shows the enhanced version of my previous example about Creating Custom WebPartZones with Custom verbs (Move right/ Move Left). One of the most common issues with ASPNET WebPart in ASPNET 2.0 is the drag-and-drop functionality in firefox. As you may know the drag-and-drop feature of WebParts will not work in firefox once it is placed inside an UpdatePanel control. So in this article, I will show how are we going to move certain WebParts in different zones without the drag and drop functionality...

ASP.NET WebPart with Skins

This example demonstrates on how to apply Skins to ASP.NET WebParts. Before we begin let us first understand the concept of the skins in ASP.NET. What is a Skin file? A Skin enables us to modify any of the properties applied to the server controls in our ASP.NET page. Skins can work in conjunction with CSS files or images. To create a Theme we can use a single skin file in the Theme Folder. The skin file extension should be always .skin. For more information about ASPNET Themes and Skins then have...

Implementing ASP.NET WebParts with Different Authentication modes

Just follow these tutorials below regarding how to implement WebParts in ASP.NET based on different Authentication mode. WEBPART with Windows Authentication WEBPART with Anonymous Users WEBPART with FORM Authentication Good Luck! Technorati Tags: ASP.NET,WebParts...

AJAX Enabled WebParts and FireFox Drag and Drop

WebParts Cross- browser drag and drop is a very common issues on ASPNET WebPart Framework.. Basically WebParts doesn't support the Drag and Drop feature in Firefox browsers and this known to be a BUG for ASPNET Webpart Framework.. To get things working in all browsers including the cross browser drag-and-drop feature then you would need to use Visual studio 2008 / VWD 2008 with latest version of the Microsoft ASPNET Futures (AJAX Control Toolkit 3.5).. For more detail information then i would suggest...

WEBPART: Count the number of Closed WebParts within PageCatalogPart

The following snippets below checks whether the PageCatalogPart Control contains any available WebParts in a page that have been closed in the page.. C# protected void PageCatalogPart1_Load(object sender, EventArgs e) { int count = 0; if (WebPartManager1.WebParts.C... > 0) { for (int i = 0; i < WebPartManager1.WebParts.Co... i++) { WebPart wp = (WebPart)WebPartManager1.We... if (wp.IsClosed) { Response.Write("Page Catalog contains Closed WebParts"); count++; } } Response.Write("<br/>...

Creating Custom WebPartZones with Custom verbs (Move right/ Move Left)

Creating Custom WebPartZones with Custom verbs (Move right/ Move Left) By: Vincent Maverick Durano Introduction: This article shows on how we are going to move a webpart from left or right directions in different zones without the drag and drop functionality of the standard webpart. In order to achieve this, we need to create a custom webpartzone with custom verb option “move right/move left” button. See Figure 1. Figure 1 The first thing to do is we need to create those custom verbs options by extending...

Full WebParts Archive