473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP 2.0 WebPartZone LayoutOrientation and Access

I have two questions for which I have yet to figure out an answer:

1. I have a page with three webpartzones, one zone on each row of a three-row
table. I have the layoutorientation property set to "horizontal" so that
the webparts will be added side by side. Is there any way to have the webparts
wrap in the zone? Currently, I have the webpartzones set to 100% width to
take up all available room in the table cell. When you add webparts, the
zones keep expanding like this:

x x x x x x

Instead, I'd like the webparts to expand to the right and then wrap with
the reach the right-side of the window, like this:

x x x
x x x

2. I'm also trying to restrict the Webpartzones to which a user can add
a webpart. Specifically, I'd like to modify the "Add to:" drop-down box
on the webparteditor so that users cannot add webparts to all of the zones
on the available page. Is this possible?
May 8 '06 #1
1 1664
On the second issue you should be able to set the AllowLayoutChange property
of the WebPartZone to false.

--
Robert L. Bogue, MS MVP, MCSE, MCSA:Security, Etc.
Blog: http://www.thorprojects.com/blog
"Heath Howard" <au******@gmail.com> wrote in message
news:cf*************************@news.microsoft.co m...
I have two questions for which I have yet to figure out an answer:

1. I have a page with three webpartzones, one zone on each row of a
three-row table. I have the layoutorientation property set to
"horizontal" so that the webparts will be added side by side. Is there
any way to have the webparts wrap in the zone? Currently, I have the
webpartzones set to 100% width to take up all available room in the table
cell. When you add webparts, the zones keep expanding like this:

x x x x x x

Instead, I'd like the webparts to expand to the right and then wrap with
the reach the right-side of the window, like this:

x x x
x x x

2. I'm also trying to restrict the Webpartzones to which a user can add a
webpart. Specifically, I'd like to modify the "Add to:" drop-down box on
the webparteditor so that users cannot add webparts to all of the zones on
the available page. Is this possible?

May 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: nail | last post by:
Hi. So, in a webpartzone I put 3 webusercontrols like the following code: <asp:WebPartZone SkinID="wp1" ID="WebPartZone1" Runat="server" Height="75px" Width="382px" DragHighlightColor="244, 198,...
1
by: chrisfox | last post by:
Hi, I try to customize the style of my Webparts with a CSS Stylesheet. Therefore I define a CSS File and define some CSS Classes. Now a problem occurs. Some of the classes have no effect on the...
1
by: Marc Looren | last post by:
Hi, In my application I would like to have a 'master' webpartzone. A zone which content is the same on every page. I tried to create as custom PersonalizationProvider which saves the content of...
0
by: Ashok | last post by:
Hi I have some issues in applying Themes to controls programatically, when controls are inside WebpartZone. I have put some controls inside WebpartZone, i want to apply themes and skin to those...
0
by: Prashant Majhwar | last post by:
The webpartzone is rendered as <table cellspacing="0" cellpadding="0" border="0" id="ctl00_ContentPlaceHolder1_WebPartZone1"> <tr> <td style="height:100%;"><table cellspacing="0"...
0
by: PaulOak | last post by:
Hi all, How can I create a WebPartZone within a user control? As I try to add a WebPartZone to a user control I got the following error message: "A Zone can only be added to the Page in or...
0
by: PaulOak | last post by:
Hi all, I have the following problem: 1. web site (asp.net 2.0 C#). 2. WebPartZone, which contains one user control. 3. SQL Server 2000 running on dedicated DB server, hosting the aspnetdb...
1
by: needin4mation | last post by:
I always get "untitled" for the webpartzone. I can get rid of it by putting the title= attribute in the control. I am using user controls. But what if I want it dynamic? then I can't edit the...
1
by: Saleh Ghaleb | last post by:
Hi all, Is there any way to add a WebPartZone at runtime? Thanks, Saleh
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.