I have a sqldatasource menu; 10 parents (catagories) with 77 children (subjects) & 627 grandkids (articles). There is no sitemap per say, the breadcrumbs are generated from code behind. This menu (to my understanding) is pure Asp.net with no tables and uses a generated XML file to populate the menu. I have Windows 7 on 1 disk & XP pro on another and have tested my website on both. I have a working local host on my Win7 in VWDE 2008 but I use the TinyMCE application to populate the library at my hosting service.
I open my website in Opera, FireFox, Chrome & Safari all work the main navigation menu with amazing speed. I'm happy with the amount of $$ I gave the programmer except IE (all of them) work the menu like molasses. I hoped IE 9 would resolve this but I've been playing with it and yes it is better - actually it measures up to the speed of IE 5 on this issue but still slow in comparison. So I'm asking someone to not solve this for me but give me some knowledge so that I can better state my case to the programmer I hire. I have found out that I can bleed a lot of $$ on vague statements.
The slowest IE works the menu (matt2414.info) is on the parents, faster on the children and as fast as the other browsers on the grandchildren. I've spent a lot of time trying to understand any of this but can't and when IE 9 failed to work the menu like the other browsers, well I really don't get it. Asp.net is Microsoft, IE is Microsoft, the menu is built in, through and for Microsoft products (I'm thinking if I put enough Microsoft fails in here I'll get a response, I have another post in web Forms with 37 views and 00 responses) yet it fails horribly next to ALL the other browsers. I'm a Microsoft fan and would really like to know what could have been done wrong by my hired programmer.
I'm putting together a templated, databound control. Presently it works with the following syntax... <cc:ItemChooserControl ID="ItemChooser" runat="server"> <TitleTemplate> <h4><%# DataBinder.Eval(Container.DataItem, "DisplayName") %></h4> </TitleTemplate> </cc:ItemChooserControl>
Problem
What I would like though is that the shorter, simpler Eval would work instead. <h4><%# Eval("DisplayName") %></h4> What I get however when using straight Eval is an error: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Code
I'm databinding to a custom HtmlTableCell... public class TitleTemplateTableCell: HtmlTableCell, INamingContainer { private object m_DataItem; public virtual object DataItem { get { return m_DataItem; } set { m_DataItem = value; } } }
With the following custom DataBind (non-related code removed)...
foreach (object dataItem in dataSource) { TitleTemplateTableCell title = new TitleTemplateTableCell(); TitleTemplate.InstantiateIn(title); // TitleTemplate is the template property title.DataItem = dataItem; title.DataBind(); }
i have a FormView, and i already have a Label control that gets the value of theselected propery inside the FormView, so each time the FormView displays data, i have a Label control that displays individual values, according to the value of the FormView, here is the code:
[code]....
What i would like to do is to know how i could add a DataList instead of a Label, and then each time the FormView databinds an item, to show the value of the DataList How would i go about doing that?
have a menu in my master page, but the menu will not show the childlinks when I rollover them after I have iploaded to my hotel. It works when I try it on my local pc.
It seems my website doesn't accept some CssClass defined into my <asp:Menu>.Here is how I implemented it :
[Code]....
and here is my Style.css which works for everything else :
[Code]....
What I don't understand is that my .menuItems works perfectly good...For the "hover" style, if I try with ".menuItems:hover" it will work but I don't know why ".menuItemsHover" doesn't...What am I doing wrong with this code? I followed a lot of tutorial but no one seems to work...
The amount of li elements that will be rendered into each ul is determined at runtime. Each link in a li belongs to into a specific ul (the one containing a specific caption. Imagine this as a kind of a treeview with nodes and subnodes) During the bind Event I need access to an ASP:HyperLink that will be rendered into the a-element. Which databound ASP.Net control should I pick for this? Looks like a repeater in a repeater, which should make the databinding process ugly. I'm thinking about creating this HTML-Output with StringWriters myself.
I have a menu (linked to a sitemap) wrapped in to a panel surrounded by a round control extender. The menu has StaticMenuItemStyle, StaticHoverStyle and StaticSelectedStyle. The first 2 works like a charm but not the StaticSelectedStyle. On click of the menu item the screen is redirected to appropriate page, but the menu item cssclass is set back to StaticMenuItemStyle. The background of the menu items are images. I tried some of the solutions from other posts, but no use.
I'm using ASP Menu .... It Works fine in IE ...but The Problem in Fire fox ... i put the asp menu inside Table Cell and I give Alignment Property for that cell to be right .....the Alignment for Childs in IE is Right Correct but in FireFox is Left :-( so how can I change the alignment for Childs to be Right and to work in Firefox
I was trying to prototype some jQuery-based menu into ASP.NET MVC. Just to name two examples here: [URL]Their demo page looks great, but when I integrate their sample code into MVC, the script no longer works in IE and FireFox, but it seems to work just fine under Google Chrome. Can someone kindly enough to point out what I missed? I will be honest here. I am still new to JavaScript. I have placed a copy of my VS2010 solution zip file @ [URL] Here is what I did. In the Site.Master, I have something like
Compiled the code and ran it under IE. Ideally, it should work like the demo in [URL], but in reality, it only displays unordered list in plain view. (If you download the solution file and run it, you should be able to repro this as well). Next, tried with FireFox, not working either, same result as IE. Finally, when I try it under Google Chrome 4.1 (lastest version), and the script displays just fine.
I have added a jquey menu in my master page its working fine for those asp.net pages which are at the same level as master page.
But this menu isn't working at all for all of those page which aur in Editor's and Admin's folder. In these pages menu is displaying as simple html menu and unfortunately no jquery effect is shown on it.
I'm very confused why this menu isn't working for the pages which are in a seprate folder while the master page is added at the root level outside of all these folders.
Is there a way to add/delete/update the default classes (for instance AspNet-Menu-WithChildren,AspNet-Menu-NonLink ) of the html generated by the asp.net menu or treeview control? I am using CSSAdapters so the menu control renders in a list format instead of table format.
For the ASP.NET Menu Server Control whose RenderMode is set to "List", there is an "Orientation" property which decides whether the menu would render as a horizontal or a vertical menu. I have compared the two HTML source code and was unable to find out which part of the HTML/CSS code set the orientation of the menu(unordered list).
I am trying to style the menu control to allow the menu items to float to the right of the container, however I am unable to do so as whenever I am styling the a, ul or li it keeps getting overidded by asp.net and floats everything left.
What I want is to show menu items Administrator or show user menu items.Show menu items using login...How I can do it with role provider, control menu and siteMap in masterpage?
I need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.
We have to develop an application which has a Vertical left pane menu control which displays all the web pages (A,B,C say). Now if user is in page A and filled some data and clicks on menu control to go to page B, all the data in page A needs to be saved. Also if all the required field in page A are not filled and user navigated to page B, there will be one ! sign after the menu so that user can understand that there some some more fields need to be filled up.
We are planning to place the menu control in the Mater page. Please give me some direction to do this. My question is:
1. If user change menu (In Master Page), how should we save data?
2. How should we display the ! in the menu control?
I know that the code depicted below will not work but I am including it to convey the idea of what I wish to accomplish. I want to use a different SiteMap to construct the menu on the displayed page for each of three different classes of service (COS).
I set a session variable named "COS" at the login and want to test its value prior to rendering each page. I want to display a menu based upon the appropriate COS. Here is my first stab at it but I know that I cannot include <asp:...> controls within the "case" statements. Can anyone suggest methods of doing this? I know C# and can use that but I do not know how to select the proper sitemap within the <menu> control. I am also using a CSS in my production version.