CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/21/2006 12:22:59 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 7 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
8 Items, 1 Pages 1 |< << Go >> >|
SergioF
Asp.Net User
menucontrol and outputCache Bug?12/21/2006 12:22:59 AM

0/0

I'm using two menu controls in the same masterpage. One vertical and one horizontal.

They work fine until I use outputcache on each of them. After that the horizontal menu goes crazy when I hit the refresh button.
After using the outputCache the horizontal menu display all items and subitems opened.

 Anyone can help me?

 I made a simple example that shows the problem:

My masterPage:

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<%
@ Register TagPrefix="menuNav" TagName="menuNavTag" Src="~/menuNav.ascx" %>
<%
@ Register TagPrefix="menuHelp" TagName="menuHelpTag" Src="~/menuHelp.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<link id="stylesheet" href="StyleSheet.css" rel="stylesheet" type="text/css" runat="server" />
</
head>

<body>
<form id="form1" runat="server">
<table id="tableMaster" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</td>
<td>
<menuHelp:menuHelpTag ID="MenuHelp" runat="server" />
</td>
</tr>
<tr>
<td>
<menuNav:menuNavTag ID="MenuNav" runat="server" />
</td>
<td>
&nbsp;
</td>
</tr>
</table>
<asp:ContentPlaceHolder ID="ContentMain" runat="server">
</asp:ContentPlaceHolder>
</form>
</
body>
</
html>

My Vertical usercontrol menu:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="menuNav.ascx.vb" Inherits="menuNav" %>

<%@ OutputCache Duration="10" VaryByParam="none" %>

<

asp:SiteMapDataSource ID="menuNavSMDS" runat="server" ShowStartingNode="False" SiteMapProvider="navSiteMap" />

<

asp:Menu ID="menuNavID" runat="server" BorderStyle="None" DataSourceID="menuNavSMDS" DynamicVerticalOffset="2"

Height="210px" StaticPopOutImageUrl="spacer.gif" Style="z-index: 1"

Width="140px">

<StaticMenuStyle CssClass="MenuStaticBox" />

<StaticMenuItemStyle CssClass="MenuStaticItem" HorizontalPadding="4px" VerticalPadding="4px" />

<DynamicHoverStyle CssClass="MenuDynamicHover" />

<DynamicMenuStyle CssClass="MenuDynamicBox" />

<DynamicMenuItemStyle CssClass="MenuDynamicItem" />

<StaticHoverStyle CssClass="MenuStaticHover" />

</

asp:Menu>

 

My Horizontal menu control

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="menuHelp.ascx.vb" Inherits="menuHelp" %>

<%@ OutputCache Duration="10" VaryByParam="none" %>

<

asp:SiteMapDataSource ID="menuHelpSMDS" runat="server" ShowStartingNode="False"

SiteMapProvider="helpSiteMap" />

<

asp:Menu ID="menuHelpID" runat="server" Orientation="Horizontal" DynamicVerticalOffset="2"

Height="20" BorderStyle="None" StaticPopOutImageUrl="spacer.gif" Style="z-index: 2"

DataSourceID="menuHelpSMDS" >

<StaticMenuStyle CssClass="MenuHelpStaticBox" />

<StaticMenuItemStyle CssClass="MenuHelpStaticItem" />

<DynamicHoverStyle CssClass="MenuHelpDynamicHover" />

<DynamicMenuStyle CssClass="MenuHelpDynamicBox" />

<DynamicMenuItemStyle CssClass="MenuHelpDynamicItem" />

<StaticHoverStyle CssClass="MenuHelpStaticHover" />

</

asp:Menu>
SergioF
Asp.Net User
Re: menucontrol and outputCache Bug?12/24/2006 1:15:57 PM

0/0

No one can help me?

Was my post clear?

TchamiDK
Asp.Net User
Re: menucontrol and outputCache Bug?2/6/2007 7:25:14 PM

0/0

Did you manage to solve this?

I'm having the same problem..  
 

adressin
Asp.Net User
Re: menucontrol and outputCache Bug?3/12/2007 11:07:01 PM

0/0

Same issue: Using Output Caching on asp Menu control. Initial load works fine, but subsequent cache hits disregard all CSS for the menu and it goes bonkers... any help is appreciated.

 

Thanks,

 Aaron 

adressin
Asp.Net User
Re: menucontrol and outputCache Bug?3/15/2007 4:35:31 PM

0/0

Someone has to have an idea about this... or has succesfully implemented output caching on an asp menu. If you have... PLEASE respond and give some hope before I rip this thing out of my application!

 

Thanks 

BJW_RedRock
Asp.Net User
Re: menucontrol and outputCache Bug?3/15/2007 4:48:25 PM

0/0

I've been having the same issue. Please let me know if you find a resolution, someone must have a solution.
KalingaTiger
Asp.Net User
Re: menucontrol and outputCache Bug?3/15/2007 5:21:23 PM

0/0

Hi Aaron:

 

I having the simillar problem, and will be very much interested to have the solution before my whole head turns grey. Thank you.

SergioF
Asp.Net User
Re: menucontrol and outputCache Bug?3/29/2008 8:16:21 AM

0/0

As part of the process of improving our site I decided to implement cssAdapters to both menus (see http://www.asp.net/CSSAdapters/Menu.aspx).

As a side effect, the cssAdaptersMenus solved the problem. I now have both menus cached working together in our interior decoration site (http://loja.inexistencia.com)

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


Free Download:


Web:
menucontrol and outputCache Bug? - ASP.NET Forums Re: menucontrol and outputCache Bug? 12-24-2006, 8:15 AM. Contact ... Re: menucontrol and outputCache Bug? 02-06-2007, 2:25 PM. Contact ...
ng.asp-net-forum.master_pages_themes_and_navigation_controls/5 ... How to Populate TreeView Control With This Database Schema? 1, 18, 3/29/2008 9: 10:05 AM. menucontrol and outputCache Bug? 7, 14, 3/29/2008 8:16:21 AM ...
Feedback: Menu Control and Caching Create a user control which contains a menu control 2. Enable caching in the user control using the OutputCache directive ...
March 2008 - Posts - Anas Ghanem For the Menu Control , we can use MenuItemDataBound Event Handler to ... How To Prevent the Page from using its Output Cache Based On Some Condition ...
aspnet caching Most Recent Posts When I set the usercontrol to use outputcache with varybyparam = none the links ... is enabled for both server-side and the browser, this "feature" (or bug? ...
Abstract base class control adapters, 58 DataSourceView, 72 ... Menu control (navigation control), 54–55, 57. Method names list, 19 ... OutputCache, 286, 297–298. P. @Page, 11–12, 14. Async attribute, 326–330 ...
Jerry Orman If you're using the new menu control that ships with ASP. .... the Cache class or have the OutputCache directive in the page, you'll want to remove them. ...
TheMSsForum.com >> Asp >> Programmatically Set SkinId Properties ... Can you please help me to find if it is a bug in AJAXToolKit You can help ..... Menu Control used on a MasterPage Hello, I am using an ASP Menu Control as a ...
Build ASP.NET, AJAX, and Windows Forms applications with ... Rad menu control overlaps with rad control. Started by: Hiren Savjiyani .... RadMenu and OutputCache. Started by: Keith Henkel. 13 / 195, 5/30/2008 ...
C# - Gilad Lavian First Step - Add a Menu control to the ASPX file. .... In many projects i built, i used the OutputCache to improve WebSites performance and scalability. ...




Search This Site:










web.config file

localization terms of use

listing connectionstrings and appsettings

hosting a webservice free of cost

isinrole - returning false. dnn 2.03

security

getting a list of authorised users

dynamic content within master pages

howto fix error message: server error in '/' application

getting started

required to login again, after initial login, when navigating to different page.

is there a way to force new module into specific pane?

login control database hassle

treeview problem when using ie7

urgent : backward compatibility between .net 1.1.4 and 2.0

[dnn 2.0.3] no search? is there an alternative?

site develolpment help

reading a parameter in the url query string

aligning the main view area in the wizard control

form wizard, embeaded if statements options

performance issues with the dotnetnuke site

putting & in my html view becomes "&amp;"

problem: individual assemby:.cs files

problems debugging vs.net on terminal server

retrive a file from a binary data field

how to define dynamic 2d array?

several form tags in one page

dotnetnuke.1.0.* class browser

using sha1 to hash passwords in 1.1 not playing nice in 2.0

how to do this in dnn?

 
All Times Are GMT