473,385 Members | 1,642 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,385 software developers and data experts.

Problem using Webpartzone and CssClass

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 Webparts in
the zone. The PartStyle works. But the CssClass of the style
PartMenuPopUpStyle has no effect. If I use the properties of the style (
BorderColor etc.), I can customize the style of the webpart.
<asp:WebPartZone ...>
....
<PartStyle CssClass="PartStyle"/>
<MenuPopUpStyle CssClass="PartMenuPopUpStyle"/> <!-- This does not work -->
<MenuPopUpStyle BorderColor="Navy" ../> <!-- This works fine -->
....
</aspWebPartZone>

I'm using ASP.NET 2.0 ( Beta 2 ).
Why the CssClass Property doesn't work?

Thanks,

Chris
Nov 19 '05 #1
1 2181
I think you should use a .skin file to control the style of webpart
--
fanweixiao(#)163.com
"chrisfox" wrote:
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 Webparts in
the zone. The PartStyle works. But the CssClass of the style
PartMenuPopUpStyle has no effect. If I use the properties of the style (
BorderColor etc.), I can customize the style of the webpart.
<asp:WebPartZone ...>
...
<PartStyle CssClass="PartStyle"/>
<MenuPopUpStyle CssClass="PartMenuPopUpStyle"/> <!-- This does not work -->
<MenuPopUpStyle BorderColor="Navy" ../> <!-- This works fine -->
...
</aspWebPartZone>

I'm using ASP.NET 2.0 ( Beta 2 ).
Why the CssClass Property doesn't work?

Thanks,

Chris

Nov 20 '05 #2

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

Similar topics

4
by: Rodrigo DeJuana | last post by:
Howdy, I'm new to this .net stuff and really have little to no training. Im trying to create a new page for a web form, so i have been pretty much jsut coping code. I having some issue with...
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,...
0
by: Alan Silver | last post by:
Hello, Sorry for the long post, but I want to try and explain it clearly... I'm using webparts for (possibly) an unusual scenario, and I'm having problems. This could be because I'm doing...
0
by: Herman verschooten | last post by:
Hi, I am creating my first real ASP.NET 2.0 site and want to use the some of the new features. I created a masterpage with my main layout and added several contentpages, no problem so far. I...
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...
1
by: rote | last post by:
I mistakenly closed my webpart in design mode. How can i get it back to show :( Thanks in advance <asp:WebPartManager ID="WebPartManager1" runat="server"> </asp:WebPartManager> ...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.