Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Mouseover dropdown menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Calvin KD - 25 Oct 2004 09:09 GMT
Hi everyone,
Can someone show me or point me in the right direction as how to create a
"dropdown menu" which displays the menu items as a separete layer over the
top of the contents of the page below it. In classic ASP, I used xml, xsl,
css and htc to render the menu (with frames). Now in .NET I don't know how to
replicate the menu.
Menu.xml looks like
<?xml version="1.0" encoding="utf-8" ?>
<Menu menuText="Click here to access this applications menu." menuImage="">
   <MenuGroup TYPE="FR" menuText="Financial Reports" menuImage=""
Roles="[ANY]">
       <MenuItem menuText="Report 1" Roles="[ANY]" compressImage="Y"
menuImage="" menuTarget="frmeMain" menuAction="somepage.aspx" />
   </MenuGroup>
</Menu>

Menu.xsl looks like
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:menuns="menu">
    <xsl:output method="html" />
    <xsl:param name="pRole" select="''"/>
    <xsl:template match="Menu">
        <menuns:menu>
            <xsl:attribute name="id">root</xsl:attribute>
            <xsl:attribute name="rootType"><xsl:value-of
select="./@rootType"/></xsl:attribute>           
            <xsl:attribute name="menuImage"><xsl:value-of
select="./@menuImage"/></xsl:attribute>   
            <xsl:attribute name="menuText"><xsl:value-of
select="./@menuText"/></xsl:attribute>
            <xsl:apply-templates select="./node()" />
        </menuns:menu>
    </xsl:template>

    <xsl:template match="MenuGroup">
        <menuns:menu>
            <xsl:attribute name="menuImage"><xsl:value-of
select="./@menuImage"/></xsl:attribute>
                            <xsl:attribute name="compressImage"><xsl:value-of
select="./@compressImage"/></xsl:attribute>   
                            <xsl:attribute name="menuText"><xsl:value-of
select="./@menuText"/></xsl:attribute>
                            <xsl:apply-templates select="./node()" />           
                        </menuns:menu>
    </xsl:template>

    <xsl:template match="MenuItem">
    <menuns:menu>
                            <xsl:attribute name="menuImage"><xsl:value-of
select="./@menuImage"/></xsl:attribute>
                            <xsl:attribute name="compressImage"><xsl:value-of
select="./@compressImage"/></xsl:attribute>   
                            <xsl:attribute name="menuText"><xsl:value-of
select="./@menuText"/></xsl:attribute>
                            <xsl:attribute name="menuTarget"><xsl:value-of
select="./@menuTarget"/></xsl:attribute>   
                            <xsl:attribute name="menuAction"><xsl:value-of
select="./@menuAction"/></xsl:attribute>
                        </menuns:menu>
    </xsl:template>
</xsl:stylesheet>

Any help is greatly appreciated.
Alvin Bruney [MVP] - 26 Oct 2004 01:53 GMT
the easiest thing to do at this point may be to put your existing classic
asp code into a js file, and from asp.net, call the appropriate function in
the file.

Signature

Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok

> Hi everyone,
> Can someone show me or point me in the right direction as how to create a
[quoted text clipped - 61 lines]
>
> Any help is greatly appreciated.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.