473,395 Members | 1,383 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.

Masterpages/themes messes up designmode

I'm porting an application from asp to asp.net2.0 and thought this would be
a good time to test masterpages and themes.

The end result is fine but I find it difficult to recreate forms in
designmode since the pages gets very cluttered (controls on top of each
other, stylesheet from theme not applied). The forms use both layers with
absolute positioning and styles (from stylesheet in themes).

Does everybody have the same problems with themes/masterpages in designmode
or have I done something wrong with my pages?
Theme is applied by web.config.

Thanks
Feb 27 '06 #1
3 1498
Answering ny own questerion...

I guess that stylesheets in themes are not actually applied until the page
is displayed.
So moving my stylesheet to my masterpage using <link href="Style.css"
rel="stylesheet" type="text/css"> solves the problem. Since I only wanted to
use one theme anyway this solves my problem with design view.

Does anyone know how to solve this if stylesheet cannot be placed in
masterpage (if several themes are used)?

/ Markus

"Markus Rytterkull" wrote:
I'm porting an application from asp to asp.net2.0 and thought this would be
a good time to test masterpages and themes.

The end result is fine but I find it difficult to recreate forms in
designmode since the pages gets very cluttered (controls on top of each
other, stylesheet from theme not applied). The forms use both layers with
absolute positioning and styles (from stylesheet in themes).

Does everybody have the same problems with themes/masterpages in designmode
or have I done something wrong with my pages?
Theme is applied by web.config.

Thanks

Feb 27 '06 #2
There are a few issues with CSS in general, but I'm not sure any of them are
new. I think what you want to do is use pageStylesheetTheme attribute in the
page tag of web.config. It will apply the theme to the master page as well
as content pages at design time.

Feb 27 '06 #3
Thanks Larry,
I should never have doubted the powers of VS!
<pages theme="Default" styleSheetTheme="Default"/> worked fine in design time!
"Larry Charlton" wrote:
There are a few issues with CSS in general, but I'm not sure any of them are
new. I think what you want to do is use pageStylesheetTheme attribute in the
page tag of web.config. It will apply the theme to the master page as well
as content pages at design time.

Feb 28 '06 #4

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

Similar topics

1
by: Thomas | last post by:
Hy dudes, I have a strange problem. I dynamically create an IFrame with JavaScript and then fill in some content. Afterwards I want to switch to designMode. There the trouble starts. In Mozilla...
2
by: Lecture Snoddddgrass | last post by:
Hi, When I create a UserControl-derived object, I often expose various public properties. One of the things that I hate about the WinForms designer is that if I decide to embed one of these...
2
by: clintonG | last post by:
Does anybody know how to use a control such as the DropDownList to change Themes when using MasterPages? I'm also asking in the forum. <%= Clinton Gallagher METROmilwaukee (sm) "A Regional...
2
by: Malleier Alfred | last post by:
Hi, what does the Me.DesignMode-Property turn back. I tried to set a MsgBox(Me.DesignMode) in my form's and control's Sub New(), but it allways turns back 'false', even if the form or control is...
29
by: Charles Law | last post by:
Further to my issue about user controls, I have a problem with DesignMode. Here is the project hierarchy: MainApp |_ Project1 |_ SubProject (UserControl) SubProject has a default constructor...
1
by: Paul W | last post by:
I'm having trouble detecting whether my Control is in DesignMode. I'm deriving a class from TreeView; Public Class ExplorerView Inherits TreeView ... End Class
5
by: Nick Wouters | last post by:
Dear All In Classic ASP I used CSS for ALL layout. Now in ASP.NET version 2 I am testing out Masterpages as they come in very handy. It seems like it is replacing CSS for layout but what is...
4
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu...
15
by: =?Utf-8?B?UmJydA==?= | last post by:
I have a master page I want to use a CSS stylesheet for. I put the link tag in the master page markup, like this <link href="Styles/MyStyle.css" rel="stylesheet" type="text/css" /> It works...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.