Bahadır EKİCİ
Bahadır EKİCİ

Reputation: 1059

open popup with asp.net menu control

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

Answers (1)

Glennular
Glennular

Reputation: 18215

You can set Javascript calls in the NavigateURL property

menuItem.NavigateUrl = String.Format("javascript:openPopup('{0}');", sURL);

Upvotes: 1

Related Questions