CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 10/16/2007 9:43:47 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
coycoy
Asp.Net User
how to set number of webparts allowed in a Webpart zone10/16/2007 9:43:47 AM

0/0

Hi! I'm a newbie here. I got problem on solving how I can restrict my webpart zone to contain only a single webparts inside. Can you share an idea on how to make this work?

Nai-Dong Jin -
Asp.Net User
Re: how to set number of webparts allowed in a Webpart zone10/18/2007 3:52:13 AM

0/0

Hi,

From your description, it seems that you want to restrict your webpart zone to contain only a single webpart control inside, right?

I think you can achieve your goal by using WebPartMoving event. See the following code snippet:

   protected void WebPartManager_WebPartMoving(object sender, WebPartMovingEventArgs e)
    {
        if (e.Zone.WebParts.Count != 0) {

            e.Cancel = true;
        }
    }

Thanks.

 


Sincerely,
Michael Jin.
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Sharepoint 2007: The Definitive Guide Authors: James Pyles, Christopher M. Buechler, Bob Fox, Murray Gordon, Michael Lotter, Jason Medero, Pages: 794, Published: 2007
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005

Web:
WebPartZoneBase Class (System.Web.UI.WebControls.WebParts) In the Web Parts control set, a zone is a composite control, ... contains a number of members for working with WebPart controls contained within a zone. ...
Set Title bar styles in WebPart not WebPartZone - ASP.NET Forums Set Title bar styles in WebPart not WebPartZone. Last post 07-22-2008 10:09 AM by sip99sma. 3 replies. Sort Posts: ...
Web Parts - Web Part zone - .NET Forum Web Parts - Web Part zone. Get answers to your questions in our . ... PageCatalogPart-Displays number of webparts closed by the user. ...
Using WebParts in ASP.Net 2.0 Feb 28, 2007 ... The webpart Zone is the basic unit for webparts. .... The PagecatalogPart displays the number of webparts which are closed by using this ...
CoDe Magazine - Article: ASP.NET 2.0 Web Part Infrastructure Any Web Part inside a WebPartZone inherits the look and feel controlled by the ... ConnectionsZone When you have a number of Web Parts on a given page, ...
WebPart Framework basics Aug 17, 2007 ... Net Web Parts framework contains a set of controls that help in ... A WebPartZone also controls the look and feel of a WebPart inside itself ...
ASP.NET 2.0: WebPart Framework Basics •Set Your Web Site's Navigation Structure Easily with ASP.NET 2.0 Site Maps ... A WebPartZone also controls the look and feel of a WebPart inside itself. ...
CodeGuru: Using Webparts in ASP.NET 2.0 Mar 6, 2007 ... By placing different contents in a web part zone, you can allow a user ... Page catalog displays the number of web parts that are closed by ...
Common Web Part properties All Web Parts share a common set of properties that control their appearance, ... Note Each Web Part in the zone must have a unique Part Order number. ...
Creating Custom WebPartZones with Custom verbs (Move right/ Move Left) Jul 23, 2008 ... //gets the total number of webparts that is present in a particular zone. int wpcount = (int)e.WebPart.Zone.WebParts.Count; ...




Search This Site:










wishlist funciton in the e-commerce using vb.net

upgrade error

isp settings - table and sp ownership set to db user name not 'dbo' (dnn 3.1.1)

regularexpressionvalidator

uninstall visual studio .net prerequisites

threading?

i'm abel to add a skin and create a skin, but how do i delete a skin?

create guid is disabled

sending email, adding datagrid to email

start up error - what should i look for?

dnnmasters smtp relay testing pro module for dotnetnuke 3.x released

deleting a file in a folder

checking for null object

setup of webdevexp2005 freezes while loading components

i wan na know how i can customize new user registration form of user control

stopping the 100-continue header being sent

com object with clsid {db4185bd-67d5-4b17-81df-e2a3ff7553d3} is either not valid or not registered

default time in duration picker assistance - porfavor...

installing vs 2005 while maintaining vs.net 2003/asp.net 1.1 applications?

inherents attribute

role based authenitcation w/forms

want web application project for vs2005 beta2

microsoft.xmlhttp in asp converting to asp.net

help, how to embed flash file in aspnet page

editing new module

understanding the database?

banner module alternative

writing newline with binarywrite

javascript: passing parameter to new window, then diplaying the parameter in the new window

handling bll errors/exceptiosn

 
All Times Are GMT