Problem with Menu Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • john20
    New Member
    • Jul 2008
    • 37

    #1

    Problem with Menu Control

    Hello Everone,

    I want to display page in IFrame when you click on menu item. This is how I am writing the code for it.

    Code:
    Dim prntMenu As New MenuItem("User", "", "", "~/User.aspx", "_Parent")
    prntMenu.Target = "myIframe"
    Menu1.Items.Add(prntMenu)
    But its opening the page in new window instead of the given Target of Iframe.

    Also tried replacing "_Parent" with Iframe ID "myIframe" but no difference.

    Could you please tell me where i am doing wrong.

    Thanks
    John
Working...