Menu lost layout


https://forum.kartris.com/Topic152.aspx
Print Topic | Close Window

By trenery - Thu 4 Nov 2010
Hi Guys

I have just installed Kartris and have a problem with the menu. It seems to have lost its style.

www.mototouring.co.uk

I tried to install the orange theme and get very strange results, looks like style sheet issues again.

Also, I notice that there are .vb files to be installed with the new skins. I assume these go into MasterPages folder with the Master file. (but the original katris skin did not have a VB file in the folder.)

Any suggestions?

Thanks

Mike
By Mart - Sat 6 Nov 2010
Weird, I've not seen that issue before.

When you installed the orange skin, did you change the master page setting within kartris software (as well as the skin location)?
By trenery - Sat 6 Nov 2010
Yes I did. I have just deleted all and rebuilt the whole thing from scratch and still have the menu problem. I have tried loads of different browsers too.

www.mototouring.co.uk

Any ideas?

Thanks

Mike
By Paul - Sun 7 Nov 2010
I can see what the problem is, but not sure why.

If I view the source of the page, the menu formatting and classes/styles are wrong.

For example, this is some HTML source from our demo:

<div class="dropdownmenu" id="menubar">
<div class="KartrisMenu-Horizontal" id="ctl00_UC_NavigationMenu_menFrontEnd">
<ul class="KartrisMenu">
<li class="KartrisMenu-Leaf">
<a href="/Default.aspx?" class="KartrisMenu-Link" title="Home">



This is the same part from your site:

<div class="dropdownmenu" id="menubar">
<a href="#UC_NavigationMenu_menFrontEnd_SkipLink">
<img alt="Skip Navigation Links"
src="/WebResource.axd?d=unxaaAdkYa7EhBJrXP1S8Q2&amp;t=634244695177776250"
width="0" height="0" style="border-width:0px;" /></a>
<div id="UC_NavigationMenu_menFrontEnd">
<ul class="level1">
<li><a title="Home" class="level1" href="/Default.aspx?">Home</a>



I noticed the breadcrumbtrail seems to show up in a table cell, judging by the background image.

Are you sure there are no other changes that might be responsible for this?
By trenery - Sun 7 Nov 2010
Hi Paul

This is a clean install without any changes to the code or styles at all. 

I too have noticed the differences inn the code on my site and your demo site.

I installed this with the Microsoft tool which installs an old version. 1.18000 - could this be the problem?

Mike
By trenery - Sun 7 Nov 2010
Just checked your demo and you are running 1.2001. The Microsoft installer installs 1.1008

So I guess that's the problem.

I just need to know how to manually install the new version 1.2000 please.

Thanks

Mike
By Paul - Sun 7 Nov 2010
I have not seen these issues with other installs of 1.1008. The strange thing is some of the class names in the css look completely different to anything we have in there, for example in the dropdown menus.

We have submitted the 1.2 zip to Microsoft couple of days back, but it can take a week or two for them to review and set it live. But if you download the zip from our site, it has all the required files, you can copy all the site files to your web, and then run the SQL setup script in the Uploads\resources folder to create the db.

Then it should fire up the setup routine which should allow you to create the web.config with database connection and an admin account.
By trenery - Mon 8 Nov 2010
Hi Paul

I have installed V1.2 and got the same problem with the menu Unsure. The site seems to have lost it's menu style. But I bet the code looks different as before.

Could this be something to do with the web server? Version of .net or something.

Has anyone else had the same issues?

http://www.mototouring.co.uk/

Mike
By Mart - Mon 8 Nov 2010
Yes, we discussed whether this could be a server issue.

At default, the Microsoft web controls render as old style HTML, with tables used to format them.

Since the modern way of doing things is to format with CSS, we use some open source code (adapters) to get it to render these in XHTML/CSS.

The fact that yours had table formatting looked like this code might be failing for some reason - but we weren't really sure how or why - never seen this issue before.

Is there anything unusual about the server? Is it a new install, what version of windows, what else is installed on it?
By Paul - Tue 9 Nov 2010
From what I can see of the styles in the menus, I think this is related to ASP.NET 4. It seems many of the controls have been improved such that they can render CSS friendly natively without requiring the CSS adaptors. Therefore they appear to be rendering slightly differently, with different style names, and the adapters we have written in are effectively ignored.

When I scan your site, it appears to return ASP.NET 4 as the active version, whereas sites we have running on ours return ASP.NET 2.

In actual fact, ours are running ASP.NET 3.5, however in IIS the selection choice is between 1.1 and 2.0, and so we select 2.0. ASP.NET can then see in the web.config which version of the ASP.NET platform is actually necessary and uses that to run the site.

Importantly, it *should* be possible to run different sites on different versions of ASP.NET alongside each other on the same server. So having ASP.NET 4 installed on the server should not prevent one running ASP.NET 3.0, 2.0, 3.5 or 1.1.

Do you have any manual control over what version of ASP.NET your site runs as? For example, do you get a choice on a panel or within IIS to use 1.1, 2.0 or 4.0? If so, select 2.0 and see if that fixes it.
By trenery - Tue 9 Nov 2010
Hi Guys.

It was the Microsoft Kartris installer that upgraded our server to asp.net V4. In fact it blew some other customer websites which was a real pain. Obviously, we assumed that as the installer installed V4 that's what Kartris needed.

We do have full control over the sever so I will see what we can do about changing the version or rolling back.

I will keep you posted
By trenery - Tue 9 Nov 2010
That's done it. Thanks guys.
By Paul - Tue 9 Nov 2010
Just out of interest, did you remove asp.net 4, or did you manage to set the sites not to use it?

We've not installed it yet here and probably won't unless we know we can do it and still keep our 3.5 sites running.
By trenery - Wed 10 Nov 2010
Hi Paul

We just set our site to use a previous version and it works fine.

I guess that Microsoft have changed the installer to force V4 to install so you might start to see a few issues with installs now.

Thanks for your help on this.

Mike
By Paul - Wed 10 Nov 2010
Yes, I think the installer installs the 'latest MS platform tools', even if they're not required for the particular application you're installing. I know some of the featured apps that don't require a db commented that it still installs MS SQL Server.

But at least we can choose the asp.net version, so should be simple to fix any issues.

We're looking at asp.net 4 regarding the CSS adaptors to see the best way to handle this. The way it looks at present, we'll have to rework the CSS for the menus and some other places to handle the newer controls.