MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Custom User Control Error (Closed) (Mono Support )

Viewed 59322 time(s), 10 post(s) 23.09.2011 09:37:24by whitewing

Related topics

whitewing

whitewing

23.09.2011 09:37:24
Hello I Write a User Control For MonoX CMS, I Use ASP.Net Default Menu Control, But ASP.NET Default Menu Control CSS can't show normally.

The Result is Menu Control Expand All Item. I don't know how to fix this error. Thanks!
Dieser Inhalt wurde noch nicht bewertet. 
105 Reputation 12 Total posts
khorvat

khorvat

23.09.2011 10:02:38
Hi,

this is a CSS issue as you may have changed the parent css class or something. You need to send us you mark-up code and css so we can check what is the issue. Or the best solution would be the URL of the Web site so we can take a look.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
whitewing

whitewing

23.09.2011 14:24:29
This is my test website. You can look it.
Dieser Inhalt wurde noch nicht bewertet. 
105 Reputation 12 Total posts
khorvat

khorvat

23.09.2011 14:41:55
Hi,

I think the issue is in the CSS Friendly Adapters as you are missing CSS styling for the Menu control. My suggestion would be to disable CSS Friendly Adapters by doing the following in the /App_Browsers/CSSFriendlyAdapters.browser file:

Find
<adapter controlType="System.Web.UI.WebControls.Menu"
               adapterType="CSSFriendly.MenuAdapter" />

Change to this
<!--<adapter controlType="System.Web.UI.WebControls.Menu"
               adapterType="CSSFriendly.MenuAdapter" />-->


Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
whitewing

whitewing

24.09.2011 00:06:06
Hi khorvat

I found a post like my problem before. Then I disable Menu CSS Friendly Adapters, But it doesn't work.

Thanks
Dieser Inhalt wurde noch nicht bewertet. 
105 Reputation 12 Total posts
khorvat

khorvat

24.09.2011 06:33:10
Hi,

I have take a look at the web site again and CSS adapters are still applied to the Menu, did you compile the Web site after you have commented out the CSS adapter ?

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
whitewing

whitewing

24.09.2011 06:52:45
Hi

I'm sure mark CSS adapter code, But When I Modify MonoX Code, the site will recompile again, isn't?

When menu control in my develope project, css name is other.

When I place user control in MonoX. user control menu css use anthoer one(ex: Asp-Net-Horizational).

So I don't know what happen in this case

Thanks!



Dieser Inhalt wurde noch nicht bewertet. 
105 Reputation 12 Total posts
khorvat

khorvat

24.09.2011 08:47:09
You need to open MonoX project in a Visual Studio (Solution provided with MonoX is of WAP type so you need to recompile the project) and recompile the project so your App_Browser assembly is regenerated. When you do so your adapter will be disabled and you won't get the "Asp-Net-" CSS classes in the MonoX project.

Let me know if you have managed to solve this.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
whitewing

whitewing

25.09.2011 11:51:47
HI Khorvat

I Compile App_Browsers Again. But App_Browsers.dll doesn't change more. Then I copy file to MonoX project again.

The Menu CSS doesn't walk. So I google "App_Browsers.dll" issue. I found some issue you can take a look.


1. http://connect.microsoft.com/VisualStudio/feedback/details/557301/precompiled-app-browsers-dll-not-working-from-visual-studio-2010
2. http://conficient.wordpress.com/2010/05/11/fix-for-precompiled-websites-from-vs2010-on-net-3-5-for-cssfriendly-adapters/

The solution is delete "Bin" folder's " __browserCapabilitiesCompiler" file, so it's work.





Dieser Inhalt wurde noch nicht bewertet. 
105 Reputation 12 Total posts
khorvat

khorvat

25.09.2011 17:10:55
Hi,

by recompiling the MonoX project the file __browserCapabilitiesCompiler should be deleted, and that's why I didn't mentioned that to you. But it seems to me that you are compiling the project on one side and then coping the files to another, so maybe that was the problem. I'm glad that you have solved the issue and that it works for you.

For the next MonoX release we are removing the CSS Adpters from the default settings, so if anyone want's to use them they should manually enable them and recompile.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts