CodeVerge.Net Beta


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

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/29/2005 9:24:46 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 42 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Bishi
Asp.Net User
Using Menu control with XMLDataSource links show up but when clicked nothing happens..............................9/29/2005 9:24:46 PM

0/0

I have a WebSiteMenuNavigation.xml file link via a XMLDataSource to my <asp:Menu>. I see the links such as Home, Careers, Contact Us etc. and the links behave like links with hover and everything but when I click on the link nothing happens. I have looked at my code over and over and can?t see what I?m doing wrong.

 

Here is the code snippets:

 

Xml file:

 

<?xml version="1.0" encoding="utf-8" ?>

<SiteMenu>

      <MenuItem title="Home" url="~Default.aspx" tooltip="Home">

            <MenuItem title="Careers" url="~Careers.aspx" tooltip="Careers"/>

            <MenuItem title="Contact Us" url="~ContactUs.aspx" tooltip="Contact Us"/>

            <MenuItem title="About Us" url="~AboutUs.aspx" tooltip="About Us"/>

            <MenuItem title="Terms of Use" url="~TermsOfUse.aspx" tooltip="Terms of Use"/>

            <MenuItem title="Privacy Policy" url="~PrivacyPolicy.aspx" tooltip="Privacy Policy"/>

            <MenuItem title="link" url="~Default.aspx" tooltip="Home"/>

            <MenuItem title="link" url="~Default.aspx" tooltip="Home"/>

            <MenuItem title="link" url="~Default.aspx" tooltip="Home"/>

      </MenuItem>

</SiteMenu>

 

Menu control in on DefaultMaster.master page:

 

<div class="box-736 flatnav">

    <div class="boxbottom">

   

    <ul>

        <li>

            <asp:Menu ID="HeaderMenu" runat="server" Orientation="Horizontal" MaximumDynamicDisplayLevels="0" StaticDisplayLevels="2" DataSourceID="XmlDSWebSiteMenuNavigation" >

                <DataBindings>

                    <asp:MenuItemBinding DataMember="MenuItem" TextField="title" />

                    <asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="url" />

                    <asp:MenuItemBinding DataMember="MenuItem" ToolTipField="tooltip" />

                </DataBindings>

            </asp:Menu>

        </li>

    </ul>

 

    </div> <!-- end .boxbottom -->

    </div> <!-- end .box-736 -->

 

XMLDataSource code in DefaultMaster.master:

 

<asp:XmlDataSource ID="XmlDSWebSiteMenuNavigation" runat="server" XPath="SiteMenu/MenuItem" DataFile="~/WebSiteMenuNavigation.xml"></asp:XmlDataSource>

 

Thanks for your help?.

 

Patrick

 

Luis Abreu
Asp.Net User
Re: Using Menu control with XMLDataSource links show up but when clicked nothing happens..............................9/30/2005 12:59:06 PM

0/0

Hello.

I think that you're supposed to define all the aspects related with the menuitem on the same element:

<asp:MenuItemBinding datamember="MenutItem" TextField="..." NavigateUrlField="..." ToolTipField="..." />

--
Regards,
Luis Abreu
email: labreu_at_gmail.com
PT blog: http://weblogs.pontonetpt.com/luisabreu
EN blog:http://msmvps.com/blogs/luisabreu
http://www.pontonetpt.com
http://weblogs.pontonetpt.com/
Bishi
Asp.Net User
Re: Using Menu control with XMLDataSource links show up but when clicked nothing happens..............................9/30/2005 3:47:12 PM

0/0

Thanks for your reply. Yes you are correct that was the problem, now it is working..........................
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Building a Database Driven Hierarchical Menu using ASP.NET 2.0 ... But when I click on any other sublink of the menu, Request. .... The changes that are in my sql table don't seem to show up in the menus until I do a ...
Inside Microsoft: Structuring an ASP.NET 2.0 Site using Master ... To view the full image Click here. It's a simple page, but the only addition ..... In the following example, MasterPage2.master has an asp:Menu control in ...
ASP.NET Development Jul 8, 2006 ... Nothing happens when I place the following code in page load and render event. .... Can I do this with ASP.Net 2.0 Menu control? ...
ASP Dotnet Xml how to assign the css class to menu control in dotnet .... NET web controls are still nothing but HTML and JavaScript to enable all sorts of client-side ...
Inside Microsoft: Styling a Site using Themes Notice that I've used an XmlDataSource control to link to an XML file that .... It all comes down to page event order - the button click happens too late in ...
Expression Blend on Microsoft Expression Forums | BoardReader RE: Blend 2: Creating a menu from an XML data source? ... From the open dialog I can select my csproj or sln, but nothing happens. ...
Intrepid Studios, Inc. Blog - Minneapolis, MN - .NET, XHTML, CSS ... How To: Read RSS/Atom Feed Using .NET and the XmlDataSource With Or ..... Note: Controls removed from the page will still show up in the resource file. ...
Microsoft Web Platform - Microsoft Expression Web Essentials: Rich ... Learn the basics of presenting data using an XML data source, and how to apply various .... Lemme show you what happens if I add that one and click okay. ...
The Sells Spout However, either way, to get the new activities to show up on the toolbar, ...... But using /Excuses/Excuse, I'm exposing the children directly. ...
Introduction to Server-Side XML tion using a TransformSource with this control. The XMLDataSource control ...... bly include a little more error handling and a return link, but the focus ...




Search This Site:










datatable name vs. untyped reference

looking for sample code that will read / write file to a users desktop.

array list can't see results, no errrors when ran

object reference not set to an instance of an object

college timetable

how to use this string?

how to write code when set control property with mixed quoation mark and single quoation marks?

posting an appointment from asp.net to outlook public folder

could it be possible to compile one project into multiple dll files ??

visible property

data access layer with connection to webservice

can anyone help me with this code please?

exceptions class

aspx design

gdi+ image quantizer for blurry gifs

error handler, exceptionutility

if else.. if else not catching 2nd if

google analytic and rss

array processing getting (object reference not set to instance of an object")

string.tostring (iformatprovider) doesn't take case of the provider ?

can't display unicode vietname font

question on attributes.add

using web services to implement asynchronous behaviour belongs to any of below?

control that supports viewing another web page?

get month portion for a date

capture primary key violation error

why wont this work? error cs1010:newline in constant

any vwd tutorials for detailsgrid insert formatting?

please correct my @ page directive for codebehind asp.net

session time-out?

  Privacy | Contact Us
All Times Are GMT