CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/2/2006 1:57:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 200 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
MartinSmithh
Asp.Net User
MasterPages and System.Web.UI.WebControls.Menu: An unholy mess!7/2/2006 1:57:09 PM

0

I am using a System.Web.UI.WebControls.Menu on my site. Today I tried to move it into a master page and it all broke down.

The menu loads but appears fully expanded until it is moused over when it contracts itself.

Even when the menu has contracted itself mousing over menu items makes squares appear on the screen and shows child menu items under the wrong parent.

Viewing source shows that the most obvious thing that has changed is now all menu styles, names and ids begin with an underscore character (i.e. are prefixed with _ctl0_)

I've confirmed that this is the problem by saving the source and replacing all instances of "_ctl0" with "ctl0" and the menu works fine again.

How can I get this _ct10 (which I assume is the ClientID of the master page?) to be something compliant with HTML specifications and (more importantly for me) the menu code?

MartinSmithh
Asp.Net User
Re: MasterPages and System.Web.UI.WebControls.Menu: An unholy mess!7/5/2006 2:18:17 PM

0

Hello Microsoft.

Any response to this issue?

ScottGu
Asp.Net User
Re: MasterPages and System.Web.UI.WebControls.Menu: An unholy mess!7/6/2006 3:55:40 AM

0

Hi Martin,

Can you send me a simple example in a .zip file that shows the problem you are having?  I can then work to help you fix it.

Thanks,

Scott

MartinSmithh
Asp.Net User
Re: MasterPages and System.Web.UI.WebControls.Menu: An unholy mess!7/6/2006 4:36:53 PM

0

It's alright I've found the problem eventually! The conversion wizard left the following tag in my web.config

<

xhtmlConformance mode="Legacy"/>

Removing that means that my controls are now prefixed with ctl0 not _ctl0.

Hopefully this will help other people as I see from your blog that I'm not the only person this has happenned to!

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
MasterPages and System.Web.UI.WebControls.Menu: An unholy mess ... I am using a System.Web.UI.WebControls.Menu on my site. Today I tried to move it into a master page and it all broke down. ...
The Cerebral Kitchen - programming Using MasterPages, a SiteMapDataSource, and the Menu control ...... of the scale by the act of removing notes that were considered "unholy" by the Church, ...... WebControls.Label Label1; protected System.Web.UI.WebControls. ...... Now that the .com commercial mess is out of the way, we're seeing blogging step up ...

MasterPages and System.Web.UI.WebControls.Menu: An unholy mess ... MasterPages and System.Web.UI.WebControls.Menu: An unholy mess!, > ROOT > NEWSGROUP > Asp.Net Forum ...
HOW TO: Expand Tree to SelectedNode - ng.asp-net-forum ... masterpages and system.web.ui.webcontrols.menu: an unholy mess! default focus - master pages · custome sitemapprovider · page title and master pages ...
How do set treeview menu to bind with a diff sitemap - ng.asp-net ... MasterPages and System.Web.UI.WebControls.Menu: An unholy mess ... How do set treeview menu to bind with a diff sitemap - ng.asp-net ... how can i access ...












how can i change formsauthentication redirectfromloginpage url

login timing out really quickly

set permissions for categories

the infinite login loop story

question about context.user

custom membership provider and changepassword issue

unable to get membership config

please explain the purpose of impersonate

problems with my ssl

user profile update problem

change membership config programatically?

change smtp from old isp to sbc yahoo dsl

impersonation - get actual user

login from selected locations does not work

encryption of data

approvals, gridview and aspnet_membership

problem to access network resources although impersonated user account

custom membership provider residing in the web application

page not displaying after using ssl

creating a login page authentication with msacess

a challenge..

funny delete behaviour?

get the userid being stored in the sql database

how do i: secure my site using membership and roles?

getting my application to run on the host...

another login control issue

asp:createuserwizard

signout & page already visited

help with roles. migrating from 1.1. is it worth implementing 2.0 roles?

allow anonymous access per page

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT