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: 7/11/2007 7:27:17 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 48 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
bcweed966
Asp.Net User
the Asp Menu control does not navigate to the NavigateURL property set in the menu Item7/11/2007 7:27:17 PM

0/0

I use a menu control with only 1 level of menus. there are 5 menus without any chid menus or submenus. In the menu items property box where I can set all the menu items (the roots, the actual menus) I can set and I set the NavigateUrl property pointing to a valid page in my project.

The menu is on a master page and it is supose to control the navigation between the content pages. as in if you click on the first menu it directs you to "default.aspx" and else other menu coul be "default2.aspx". 

below. the problem is that when the page is viewed in Internet Explorer... it does not navigate att all to any other page. This problem does not seem to exist when i view the page in Firefox or Netscape.

below are the sources from my asp page and then after that is the source html rendered (only for 1 menu item)  in 1st Internet Explorer and then Firefox. Notice the ONLY diffrence is in the 1st line where in the 1st it says onkeyup="Menu_Key(this)" using the word "this" and in the second one it says onkeyup="Menu_Key(event)" using the word "event"

How can I resolve this?

<asp:Menu ID="Menu2" runat="server" BorderStyle="None" Font-Bold="True" Font-Names="Verdana"

Font-Size="XX-Small" Orientation="Horizontal" ItemWrap="True" MaximumDynamicDisplayLevels="0" StaticSubMenuIndent="0px" ForeColor="DarkRed" style="margin: 0px; background-image: url(Images/m32.gif);" BorderWidth="0px" BackColor="White" BorderColor="Transparent">

<Items>

<asp:MenuItem Text="HOME PAGE" Value="skilled" NavigateUrl="~/default.aspx"></asp:MenuItem>

<asp:MenuItem Text="NUMBER TWO" Value="work" NavigateUrl="~/default2.aspx"></asp:MenuItem>

<asp:MenuItem Text="NUMBER THREE" Value="buss" NavigateUrl="~/default3.aspx"></asp:MenuItem>

<asp:MenuItem Text="NUMBER FOUR" Value="famil" NavigateUrl="~/default4.aspx"></asp:MenuItem>

<asp:MenuItem Text="NUMBER FIVE" Value="stud" NavigateUrl="~/default.aspx"></asp:MenuItem>

<asp:MenuItem Text="NUMBER SIX" Value="visit" NavigateUrl="~/default2.aspx"></asp:MenuItem>

<asp:MenuItem Text="LAST NUMBER SEVEN" Value="holid" NavigateUrl="~/default3.aspx"></asp:MenuItem>

</Items>

<StaticMenuStyle Width="100%" Height="30px"/>

<StaticMenuItemStyle BorderStyle="Solid" Font-Bold="True"

Font-Names="Verdana" Font-Size="XX-Small" ItemSpacing="0px" Height="30px" BorderColor="Silver" BorderWidth="1px" />

<StaticSelectedStyle ItemSpacing="0px" BackColor="Gray" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />

<StaticItemTemplate>

<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">

<tr>

<td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; width: 100%; padding-top: 3px; vertical-align: top; text-align: center;">

<%#container.DataItem.text%>

</td>

<td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; width: 100%; padding-top: 5px; vertical-align: top; text-align: right;">

<img src="images/20x10.jpg" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />

</td>

</tr>

</table>

</StaticItemTemplate>

<StaticHoverStyle BackColor="DarkRed" BorderColor="Black" BorderStyle="Outset" BorderWidth="1px"

ForeColor="White" />

</asp:Menu>

 

Source (1 menu item only) grom Internet Explorer:

</table></td><td style="width:0px;"></td><td style="width:0px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu2n2"><table class="ctl00_Menu2_4" cellpadding="0" cellspacing="0" border="0" width="100%">
   <tr>
    <td><a class="ctl00_Menu2_1 ctl00_Menu2_3" href="default3.aspx">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
                                <tr>
                                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; width: 100%; padding-top: 3px; vertical-align: top; text-align: center;">
                                        NUMBER  THREE
                                    </td>
                                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; width: 100%; padding-top: 5px; vertical-align: top; text-align: right;">
                                        <img src="images/20x10.jpg" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
                                    </td>
                                </tr>
                            </table>
                        </a></td>
   </tr>

 

And the source (1 menu item only) rendered in Firefox:

 

</table></td><td style="width:0px;"></td><td style="width:0px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(event)" id="ctl00_Menu2n1"><table class="ctl00_Menu2_4" cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td><a class="ctl00_Menu2_1 ctl00_Menu2_3" href="default2.aspx">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
                                <tr>
                                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; width: 100%; padding-top: 3px; vertical-align: top; text-align: center;">
                                        NUMBER TWO
                                    </td>
                                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; width: 100%; padding-top: 5px; vertical-align: top; text-align: right;">
                                        <img src="images/20x10.jpg" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
                                    </td>
                                </tr>
                            </table>
                        </a></td>
			</tr>

Thank you

Marc

bcweed966
Asp.Net User
Re: the Asp Menu control does not navigate to the NavigateURL property set in the menu Item7/11/2007 8:01:25 PM

0/0

the page can be viewed (on lucky days) at:

 

http://bcweed.mine.nu/asp menu/default.aspx (all in one line together!!!)

 

 

Amanda Wang - M
Asp.Net User
Re: the Asp Menu control does not navigate to the NavigateURL property set in the menu Item7/16/2007 8:38:10 AM

0/0

Hi Marc,

You need to remove the "table"  from StaticItemTemplate of the menu, you can use the div instead of the div.

hope it helps.

 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro C# with .NET 3.0: exploring the .NET universe using curly brackets Authors: Andrew Troelsen, Pages: 1186, Published: 2007

Web:
MenuItem Class (System.Web.UI.WebControls) When the user clicks a menu item, the Menu control can either navigate to a linked Web ... If the NavigateUrl property of a menu item is set, the Menu control navigates to the .... Bind the Menu control to a SiteMapDataSource control. --> Menu Class (System.Web.UI.WebControls) When clicked, a menu item can navigate to another Web page indicated by the ... If the NavigateUrl property is not set for a menu item, the Menu control simply ... Each element represents a menu item in the control and maps to a ..... NET Framework does not support all versions of every platform. ...
ASP.NET Tutorial A second way to populate a site menu is with an control that .... This TreeView has its ImageSet property set to "Arrows" for its menu expansion and ... This file does not have to be in the exacting format of a web.sitemap file. .... used as the NavigateUrl property of a menu item (URL in this example) .
when StaticItemTemplate is defined in the menu control.... - ASP ... when I define the StaticItemTemplate of the menu control, then it does not ... < asp:MenuItem Text="LIVING IN " Value="LIVING IN ">
.... Just puting a hyperlink control on the page and seting its NavigateURL property corectly. ... even if the "Href=" is renderedd corectly it does not navigate. for ex: ...
A La Carte: Make Highly Customized Menus with Ease in ASP.NET 2.0 In ASP.NET 2.0, Microsoft has added a full-featured Menu control that you can use ... When clicked, a menu item can navigate to another Web page indicated by the ... If you don't set the NavigateUrl property for a menu item, the Menu .... that to the client for each request—even though the menu may not ever change. ...
The Walkthrough: ASP.NET 2.0 CSS Friendly Control Adapters 1.0 This is your first chance to use an adapted control. .... Navigate to various pages in the site. Postback to the current page ... The menu items do not set the NavigateUrl property so the adapter assumes that the page should postback. ... which means that it does not cause a postback or any navigation. ...
MultiView using Menu Control in ASP.NET 3.5 Oct 2, 2008 ... If the active view is set to a View that does not exist within ... To allow users to navigate between View controls within a MultiView control, .... NavigateUrl="http://www.mindcracker.com">Mindcracker
... Menu control and MenuItem:. Item click event not firing Jan 17, 2007 ... The page load fires, but the item click event does not. ... I have attached my ascx and vb code below for the menu control. .... I understand what you are saying with the Navigate URL property, but I am unsure on how ... If I do not set the RadMenu1.NavigateURL property at the time of data binding, ...
ASP.NET Menu: Sliding Doors of CSS « Geers’ Blog Dec 6, 2008 ... Also set the Orientation property of the menu control to horizontal as it ... By default it wraps each menu item in a table. This does not lend itself for easily applying CSS. .... Launch the site again, and navigate to the Foo page. ... NavigateUrl); if ((currentUrl == menuItemUrl) || (parentUrl ...
KrishnajiSingh - Asp.Net Menu Control in Asp.Net 2.0. Asp.Net 2.0 ships with Menu controls that allow us to ... Before dismissing the dialog box, set the NavigateUrl property for each node to ... This is all we need to do to configure our Menu widget to navigate to the ... This control does its magic when we assign the AdvertisementFile ...




Search This Site:










include virtual problem

how to dynamically change the contentplaceholder's text area.

open outlook new message

how to change the top banner

retrieving data from arraylist

considering upgrading from asp.net 1.1 to 2.0. advice please?

beginner ask for help!!!!

customvalidator inside a server control?

the code of my page doesn't execute.

modoule install error in dnn 3.013

assigning null value to a variable

when creating a new module no sqldataprovider created

dnn 1.0.10c and sql 7?

can i access mdf file from cd?

templates for asp.net pages

multiview and back button

imc when sender and receiver are on 2 diffrent tabs ?

how to implement remember user login in asp.net 1.1 so that the user don't need to sign in again on their next visit??

dotnetnuke core error?? (multiple sites, single database)

com interop? serviced component?

vs2005 just quits!

question on tokens in dnn 3.0

send email w/ attachment error

any ideas on authenticating requests between business and data objects?

javascript and intellisense?

getting current server

how can i do response.write sql to see sql query(values)

ok whats wrong now with winhttpcertmgr.exe

problem with webchart

intellisense vs. masterpages & web.config.

 
All Times Are GMT