Reputation: 1059
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
Upvotes: 1
Views: 4715
Reputation: 18215
You can set Javascript calls in the NavigateURL property
menuItem.NavigateUrl = String.Format("javascript:openPopup('{0}');", sURL);
Upvotes: 1