Member_2_6540818
asked on
want to open new window on click of menuitem using navigateurl
Hi,
I need to open a new window on click of a menu item and its using navigateurl as mentioned below.
I tried this it opens a new new tab instead of a new window, I just want a new window and current page need not to be updated, what other things i can do.
protected void navMenu_MenuItemDataBound( object sender, MenuEventArgs e)
{
//webhelp changes
if (e.Item.NavigateUrl.Contai ns("PageUR L=MenuWebH elp"))
{
string PopupWindowScript = @"javascript:window.open(' /Medicare/ Medicare/H elp/Help.a spx?PageUR L=', 'HelpDocs', 'top=50,left=50,width=800, height=800 ,location= no, status=no, menubar=no, scrollbars=no, resizable=yes,').focus();" ;
e.Item.NavigateUrl = PopupWindowScript;
e.Item.Target = "_blank";
}
if (e.Item.NavigateUrl.Contai ns("#"))
{
e.Item.NavigateUrl = "";
}
}
I need to open a new window on click of a menu item and its using navigateurl as mentioned below.
I tried this it opens a new new tab instead of a new window, I just want a new window and current page need not to be updated, what other things i can do.
protected void navMenu_MenuItemDataBound(
{
//webhelp changes
if (e.Item.NavigateUrl.Contai
{
string PopupWindowScript = @"javascript:window.open('
e.Item.NavigateUrl = PopupWindowScript;
e.Item.Target = "_blank";
}
if (e.Item.NavigateUrl.Contai
{
e.Item.NavigateUrl = "";
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I found the solution after some quick research. Thanks for your inputs on this.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for dotnetcode's comment #a39218009
for the following reason:
I found the solution after some quick research. Thanks for your inputs on this.
Accepted answer: 0 points for dotnetcode's comment #a39218009
for the following reason:
I found the solution after some quick research. Thanks for your inputs on this.
Conventionally, when a member finds their own solution, they post it. Otherwise the question is just a bit of empty trash in the database that is no help for anyone finding it in a search.
Cd&
Cd&
the only way it is of help is if the solution is also given to the rest of the community.
ASKER