您好,在母版页中设置了一个 rad 菜单,并在其中添加了所有 url/链接。
我正在尝试从 D 后面的 aspx 页面代码中更改两个 radMenuitems 导航链接)用 javascript 点击事件替换链接。E) 当你点击然后触发 vb.net void click 事件
谢谢
Protected Sub Page_Load(sender As Object, e As EventArgs)
Dim rmenu As RadMenu = DirectCast(Master.FindControl("mymenu"), RadMenu)
Dim D As RadMenuItem = DirectCast(rmenu.FindControl("dogs"), RadMenuItem)
Dim E As RadMenuItem = DirectCast(rmenu.FindControl("cats"), RadMenuItem)
D.NavigateUrl = nothing
E.NavigateUrl = nothing
D.click = "alert('you clicked on dogs')"
E.click = Button1_Click
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs)
'do this for cats only
End Sub