views:

1018

answers:

2

Hi guys i have a terrible problem İ have to open popup window(javascript) with asp.net menu control but i cant.Menu items dont contains "attribute" so i cant assign javascript codes. How can i solve? thx your suggestions

+1  A: 

You can set Javascript calls in the NavigateURL property

menuItem.NavigateUrl = String.Format("javascript:openPopup('{0}');", sURL);
Glennular
i try but my main page nagivates a blank page.my code is: <siteMapNode title="LiveResults" url="javascript:popup('Reports/RaceResultsPopup.aspx')"/>
jadeWarlord
I assume you popup(v1) on the page correctly. and that is the correct address?
Glennular
A: 

This works, but causes the parent window to refresh and display "false".

From what I understand the correct format would be "javascript:openPopup('{0}'); return false;", but this does not seem to work.

Anyone who has had any luck with this please?

Jeffrey