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: 2/23/2006 2:55:17 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
9 Items, 1 Pages 1 |< << Go >> >|
vbaspnet
Asp.Net User
Menu control problem2/23/2006 2:55:17 AM

0/0

Hi All,

I am using menu control in user control and then user control in master page. All my content controls are based on the the master page. In IIS i had set the virula folder to root foleder where all the related pages are palced and set the defalut page set to ContentPages/Main.aspx.

Ex.

Root folder:

c:\TestWebSite

User Controls are in:

c:\TestWebSite\UserControls\mainmenu.ascx     -- Contains the menu control

menu items data is provided by XML file.

Master Page is in :

c:\TestWebSite\MasterPage\MainMaster.master

Content pages are in:

c:\TestWebSite\ContentPages\firstTest.Aspx

In IIS I had set the virtual folder "TestWeb" mapped to c:\TestWebSite

And the default page is set  ContentPages/firstTest.aspx

http://localhost/TestWeb , When I put this url "firtsTest.aspx" page will be serverd properly but when I click on menu item it doesn't take me to any pages. it gives error because the ursl it puts

http://localhost/TestWeb/secondpage.aspx it supposed to http://localhost/TestWeb/ContentPages/secondpage.aspx. I had specified the in xml like

"~/ContentPages/secondpage.aspx" . I dont why it is happening

Anybody has any idea why it is happening.? Thank you all in advance.

 

vbaspnet
Asp.Net User
Re: Menu control problem2/23/2006 1:59:05 PM

0/0

Hi,

Anybody has face this kind of problem with menu control...? Please healp me. Thanks in advance

dannychen
Asp.Net User
Re: Menu control problem2/23/2006 6:52:23 PM

0/0

This is interesting.  I'm not sure what the problem is.  Can you try two things for me and tell me if either of them work:

Try using a url of:  "/ContentPages/secondpage.aspx"

Try using a url of "ContentPages/secondpage.aspx"

Thanks.
--
Danny


disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
vbaspnet
Asp.Net User
Re: Menu control problem2/23/2006 9:08:04 PM

0/0

Thanks for your reply. I tried both ways that you suggested still  it gives the same problem. I don't know , is it  a Menu control bug? Let me know you suggestions.

Thanks again.

dannychen
Asp.Net User
Re: Menu control problem2/23/2006 9:35:33 PM

0/0

That's very strange, if the framework was processing these URLs, one of those should have worked.  Can you share with me a sample of your xml file as well as your menu markup?  I'd like to see how you're trying to bind these fields.

--
Danny


disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
vbaspnet
Asp.Net User
Re: Menu control problem2/23/2006 9:55:26 PM

0/0

Thanks again. Sure I will, Again the menu is Horizontal oriented.

 

--- Code-----

----Menu Mark up----

<asp:Menu DataSourceID="TestMainMenu" ID="MainMenu" runat="server" StaticEnableDefaultPopOutImage=false

BackColor="#FFFBD6" DynamicHorizontalOffset="2" Font-Names="Verdana"

ForeColor="#990000" StaticSubMenuIndent="10px" Orientation=Horizontal EnableViewState=false >

<DataBindings>

<asp:MenuItemBinding DataMember="siteMapNode" ValueField="title" TextField="title"

NavigateUrlField="url" ToolTipField="description"

ImageUrlField="imageUrl" />

</DataBindings>

<StaticSelectedStyle BackColor="#FFCC66" />

<StaticMenuItemStyle HorizontalPadding="0px" ItemSpacing="1px" Font-Size=Smaller Font-Bold="true" />

<DynamicMenuStyle BorderStyle=Solid BorderWidth="2px" BorderColor="#494949" BackColor="#FFFBD6" Font-Size="Small" Font-Bold="true" />

<DynamicSelectedStyle BackColor="#BCBCBC" />

<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" Font-Size="Small" ForeColor="#663300" Font-Names="Microsoft Sans Serif" />

<DynamicHoverStyle

BackColor="#DBDBDB" />

<StaticHoverStyle Font-Bold="False" ForeColor="White" />

</asp:Menu>

<asp:XmlDataSource ID="TestMenuDataSource" runat="server" DataFile="~/CommonVDir/XML/TestMenu.xml" XPath="/*/*" EnableViewState=false></asp:XmlDataSource>

 

 

------------ XML file for menu --------------------------

<?xml version="1.0" encoding="UTF-8"?>
<siteMap>

  <siteMapNode title="" description="Gives Company info" url="~/ContentPages/Main.aspx" imageUrl="~/CommonVDir/Images/MtgInfo/nav-company.gif">

    <siteMapNode title="Main" description="Main" url="~/ContentPages/Main.aspx" imageUrl=""/>
    <siteMapNode title="FirstPage" description="FirstPage" url="~/ContentPages/FirstPage.aspx" imageUrl="" />
  </siteMapNode>

  <siteMapNode title="" description="SecondPage" url="~/ContentPages/SecondPage.aspx" imageUrl="~/CommonVDir/Images/MtgInfo/nav-centers.gif">
    <siteMapNode title="thirdPage" description="thirdPage" url="~/ContentPages/thirdPage.aspx" imageUrl=""/>
    <siteMapNode title="fourthPage" description="fourthPage" url="~/ContentPages/fourthPage.aspx" imageUrl=""/>
  </siteMapNode>
 

</siteMap>

 

------------------

Let me know your input

vbaspnet
Asp.Net User
Re: Menu control problem2/24/2006 2:55:53 PM

0/0

Hello Danny,

I have posted menu mark up and it xml data What is your opinion? please let me know this issue is driving me nuts.

Thanks

dannychen
Asp.Net User
Re: Menu control problem2/24/2006 5:26:58 PM

0/0

That is an interesting issue.  Since you've set your default document to something complex (with a path), the framework doesn't seem to properly repath the urls.  This is not a menu issue.  You would see this kind of problem for pretty much any url that uses ~/ syntax. 

One workaround I can suggest is to use UrlMappings instead of IIS to set your default page to ContentPages/Main.aspx 

Add these lines to your web.config file:

<urlMappings>
  <
add url="~/default.aspx" mappedUrl="~/contentpages/main.aspx"/>
</
urlMappings>

Now, when you browse to http://server/vdir/ you will get redirected to the main page.

--
Danny



disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
vbaspnet
Asp.Net User
Re: Menu control problem2/24/2006 7:28:13 PM

0/0

Thanks Danny!  You idea is really good.  It worked.  You are really good. Thanks again and keep it going.
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Learn to Program with Visual Basic.net Authors: John Smiley, Pages: 611, Published: 2002
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Coping with Candida: Tasty Low Carbohydrate Recipes and Menu Plans, a Simple Handbook on how to Recognize and Control Problems Caused by Yeast Over-growth, Describes Symptoms, Offers Solutions: Treat with Anti-fungals, Replant Good Bacteria, Stop Feeding the Yeast, Read Coping with Candida Authors: Sally J Rockwell, Pages: 0, Published: 1984
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
Instrument Engineers' Handbook: Process Control and Optimization Authors: Bela G. Liptak, Pages: 2464, Published: 2005
Beginning SUSE Linux: From Novice to Professional Authors: Keir Thomas, Pages: 514, Published: 2005

Web:
Simple-Talk - ASP.NET menu control problem I am facing very strange problem here. Menu control of my web application is working for all operating systems, lap tops, desktop systems. ...
Another menu control problems - ASP.NET Forums Another menu control problems. Last post 09-03-2008 9:05 PM by johncarerra. 2 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
ASP.NET 2.0 Menu Control Not working in Safari web browser NET 2.0 Menu Control is not working properly under Mac OS on Safari 2.0.2 browsers. The issue described to me is that the menu control ...
ASP.Net Menu Control problem or is it IE? | The Coffeehouse ... Aug 9, 2006 ... I want to send feedback to the ASP.Net team about a problem I'm having with the Menu Control. I need someone to confirm whether the results ...
Stefan Goßner : Problem with the ASP.NET 2.0 menu control and MCMS A couple of customers reported problems when using the menu control with ASP.NET 2.0 and MCMS. After analyzing one of the affected projects I identified ...
Feedback: ASP.NET menu control not working in IE 8 beta 2 Aug 29, 2008 ... 8. Have you ever seen this problem before in Internet Explorer? ... NET menu control into the form on the Default.aspx page. ...
Menu Control Display Problem - ASP.NET Forums Menu Control Display Problem. Last post 10-30-2008 3:05 AM by Hong-Gang Chen - MSFT. 5 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Menu control - problem with setting selected item Talk about Menu control - problem with setting selected item.
Special Characters Problem in Telerik ASP.Net Menu Control ... Hello experts! We have an application that uses Telerik menu control for ASP.Net . The menu is dynamically created by reading data from our database.
ASP.NET menu control is not working with IE6.0 - ASP.NET ASP.NET menu control is not working with IE6.0 - ASP.NET Community and Forum - Our ASP.NET forum is the place for Q&A-style discussions ...

Videos:
BannedStory Chat Bubble Fix. Are you having the problem like many others where your chat bubble function isn't working? The problem is Adobe Air, the new version has some glitc...
R4Z0Rz hack with LiNk http://rapidshare.com/files/140502771/R4Z0Rz..rar.html this is the hack http://rapidshare.com/files/140502771/R4Z0Rz..rar.html Have Fun! + Aim Help System * Pure Vector Based Aimbot - Fastest Aimbot Avail...
MISSISSAUGA PELCOrporate Security This- is PELCO Mississauga. MISSISSAUGA EMERGENCY PREPAREDNESS DAY... In the interest of fairness and cooperation, I wanted to highlight Mississaug...
Spurs Engine : DigInfo DigInfo - http://movie.diginfo.tv Currently in the research phase, Toshiba is developing a new way to view HD media with their Spurs Engine which is...
vBag M600i My problem is that to we cant control menu
Speedup Computer Hi! Im Umair Sheikh (Umee). I will show you how to speedup Computer in just simple steps Notepad makes the computer Fast •Open Notepad •Type mystri...
Nintendo DS User Review 2726 A look at the innovative features in the newest portable gaming system from Nintendo. Rate this video or find more video product reviews in the Vide...
MISSISSAUGA PELCOrporate Security This- is PELCO Mississauga. MISSISSAUGA EMERGENCY PREPAREDNESS DAY... In the interest of fairness and cooperation, I wanted to highlight Mississaug...
How to Download/Use FLELE ~*PLEASE READ*~ -Edit 7/15/2008- *facepalm* I'm getting crap loads of comments saying that the ghost is not working. EX: Not playing your music files...
Nortel LearniT: Video Production-Production Sound Follow these simple steps to maximize the sound quality of your video production




Search This Site:










visual studio 2005 error 402.1

installation question

smtp settings test

pass client's certificate to web method

source error with login video lesson example?????

datalists inside of a tabstrip

"windows 2000 style" in design view in visual studio 2008??

transfering web site

treeview help

gridview error

vwd- beta 2 - login unsuccessful

dynamic folders with security?

tab position after refresh broken after update to beta 2

dnn suddenly failing!

web parts and web user controls

2.2 eta?

can other browsers be added to vwd?

adding another project/application

user controls with no root namespace added incorrectly

url and authentication

tabs and ie 6 settings

how would you pass the tabindex value to a new page

multiple navigation controls

login failed for user 'nt authority\network service

help!

image strangeness

getting my web form on the internet

how to protect resource in the second of opening the browser?

dotnetnuke resource directory

how to display ancestry in a treeview control?

 
All Times Are GMT