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



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/10/2007 8:53:23 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 73 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
kulp
Asp.Net User
Target property of menu control8/10/2007 8:53:23 PM

0/0

I want to display a page in another frame when a menu item is clicked. How to use the target property of the menu control?

 

Amanda Wang - M
Asp.Net User
Re: Target property of menu control8/14/2007 9:20:01 AM

0/0

Hi,

You can use the DynamicItemTemplate of the menu, put a hyperlink into the template, set the the hyperlink's target is the iframe's name.

For example:

 <table>
            <tr>
                <td colspan="3">
        <asp:Menu ID="Menu1" runat="server" OnDataBound="Menu1_DataBound"
            OnMenuItemDataBound="Menu1_MenuItemDataBound" DataSourceID="SiteMapDataSource1">
            <DynamicItemTemplate>
              <asp:HyperLink ID="l1" runat="server" Text='<%# Eval("Text") %>' NavigateUrl='<%# Eval("NavigateUrl") %>' Target="iframe" BackColor="Yellow" Font-Underline="false" />   
            </DynamicItemTemplate>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="3" rowspan="2">
                <iframe id="iframe" name="iframe">
                </iframe>
                </td>
            </tr>
            <tr>
            </tr>
        </table>
2.  If you did not use the sitemapdatasource, you only need to set the menuitem's tagert property. like below:
 
<Items>
                <asp:MenuItem NavigateUrl="http://www.126.com" Text="New Item" Value="New Item" Target="iframe"></asp:MenuItem>
            </Items>
 
 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
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Developing Rich Clients with Macromedia Flex: FLEX Authors: Steven Webster, Alistair McLeod, Pages: 720, Published: 2004
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Mueller, Pages: 822, Published: 2005
DVD Studio Pro 2: The Complete Guide to DVD Authoring Authors: Bruce C. Nazarian, Pages: 566, Published: 2004

Web:
Menu.Target Property (System.Web.UI.WebControls) This property applies to all menu items in a Menu control. You can selectively override this property by setting the Target property of each MenuItem object ...
- David Yack's Blog! - Adding Target to ASP.NET Menu Control Nov 19, 2008 ... NET menu control doesn’t support setting a Target on a menu item. ... Property" url="Manage/Property/NewProperty.aspx" target="_blank" /> ...
ASP menu control component WebMenu | GetComponent May 19, 2008 ... To display the linked content in a different window or frame, use the Target property of the Menu control.Test it now! ...
Menu Control doesn't support Target="_blank"????? - ASP.NET Forums I find it hard to believe the the MENU control doesn't have a target property to direct the page to a new browser window? ...
Yahoo! UI Library: Menu Configuration properties control the look and behavior of Menu and MenuItem ...... Specifying a target will require the user to click directly on the ...
Menu Class (System.Web.UI.WebControls) The Target property affects every menu item in the control. To specify a window or frame for an individual menu item, set the Target property of the ...
MenuItem.Target Property skmMenu: An ASP.NET Menu Control ... The Url property must be set to a non-empty string for Target to have any affect. To have a MenuItem opened in a new ...
.Net Discoveries : 6 Tweaks for your ASP:Menu Control Originally I titled this post 25 ways to skin your ASP:Menu control, but I didn' t find 25 .... Unless we add stuff to it, the target property is blank. ...
CodeProject: Site Navigation in ASP.NET 2.0. Free source code and ... Aug 24, 2005 ... There appears to be a target property in menu if using menuitem, but I can't seem to find if using the menu control tied to ...
11 Configuring Enterprise Manager to Manage Application Server ... To create the group target:. Click the Targets tab in the Grid Control. Click All Targets. Select Collaboration Suite Component from the Add drop-down menu ...

Videos:
Mac OS Automator: Doing things over and over is over. Google TechTalks June 27, 2006 Sal Soghoian ABSTRACT Mac OS X "Tiger" introduces Automator, a new application that automates anything on ...




Search This Site:










asp.net menu skin question

how can i design masterpage center aligned?.

master page and imagebutton issue....

findcontrol is case sensitive, is it not ?

masterpage hit counter

master pages with sub-dir app pages with sub-dir controls with images .. oh my!

global master page across multiple iis applications

accessing theme property outside of a webapp

skin question

can you apply theme information to apply to all themes?

how to show dynamic images using the right path?

menu control - disappears in subpages

masterpage files & correct file path conventions to use??

how to create sitemap in asp.net

disable automatic inclusion of stylesheets

can i display or call another .aspx page from within content tags??

switching image on database value

accessing control from base class

can i dynamically create and save aspx files that use master pages in code?

include an html in masterpage

inherited themes?

me.placeholder1.page.request.form.set("textbox", "test")

disabling checkbox treenode on a treeview.

menu control and menuitem styles question?

masterpage problem.image in masterpage not shows in childpages

how to bind a dataset to a treeview..??

menu control error caused by parent panel resize

custom control's events in master page

add nodes to child nodes

updating a variable on a master page from the asp:content holder sub page.

  Privacy | Contact Us
All Times Are GMT