Menu and .Net Framework 4

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
5/4/2010 6:26:17 AM
Gravatar
Total Posts 16

Menu and .Net Framework 4

Hi

mojoPortal vers.  2.3.4.3

IIS 7, Windows Server 2008

When i change my sites to .Net 4,  the Menu renders a styleblock in the head tag, thus overiding
my own stylesheet values.

maybe its because the mojoPortal Menu , inherits from the Asp:Menu, where the property "IncludeStyleBlock" has a default value of true ?.

Best regards

Peter
 

 

 

 

 

5/4/2010 11:06:12 AM
Gravatar
Total Posts 18439

Re: Menu and .Net Framework 4

Hi Peter,

I see no difference in this behavior vs .NET 3.5.

www.mojoportal.com is currently hosted under .NET 3.5 and it also renders a style block

demo.mojoportal.com is hosted under .NET 4 and it also renders a style block.

In both cases it does not interfere with the menu style of included skins as far as I can tell. Maybe you have some extra junk in your App_Themes folder that makes it worse.

IncludeStyleBlock is a new property on the menu in .NET 4. Once we start shipping releases that are actually compiled for .NET 4 then we can set that to false and maybe it will not render this style block. The current release is compiled on 3.5 .NET so we have not yet tried using this property.

Best,

Joe

5/4/2010 3:02:32 PM
Gravatar
Total Posts 16

Re: Menu and .Net Framework 4

Hi Joe

Thank you for your answer.

yes i see that www.mojoportal.com, and demo.mojoportal.com
renders the same css block, so something is going on with my install.
Tomorrow i will look into the themes.

this is what i tried today, as i upgraded to last version mojoPortal.

with my (server) install, i have 2 sites, one based on
the skin dcarter-businessone and the other on styleshout-techmania.

when setting iis to target .net 2.0 (3.5sp1) the style block has
entries based on classnames that do not interfeer, with my css file entries.

when setting iis to target .net 4.0 the style block now has (more) entries
and all based on id's, that do override my css file entries

i then tried to make a clean "test" website om my work-pc,
targeting . net 4. in VS2010, added a menu, IncludeStyleBlock = "true"
and the style block was the same as i found in the two
mojoPortal sites, on the server, when targeting .net 4.


my sites runs just fine under .net 3.5sp1, and i am very happy
with mojoPortal !.


Best regards

Peter

5/18/2010 12:03:11 PM
Gravatar
Total Posts 1

Re: Menu and .Net Framework 4

I am having a similar experience.  I created a skin that has a horizontal menu and when I changed the .NET version from 2 to 4, the menu is now vertical.  Did you ever find out why this was happening to you?

Thanks, Marc

UPDATE

I figured out what was going on... I had set the app pool to use the 4.0 framework, but the web site still had 3.5 as the target.  Once I updated the web site to 4.0 everything worked.

Great product BTW....

You must sign in to post in the forums. This thread is closed to new posts.