This is a migrated thread and some comments may be shown as answers.
Javascript link
2 Answers 14 Views
This is a migrated thread and some comments may be shown as answers.
Issac
Top achievements
Rank 1
Issac asked on 10 Apr 2012, 07:57 PM
I have a link that looks like;

<a href="javascript:;" onclick="xlaAFMopenfaq(1);" class="HeaderLink">Customer Service</a>


How do I add it to a NavigateURL in a menu item?

2 Answers, 1 is accepted

Sort by
0
Issac
Top achievements
Rank 1
answered on 10 Apr 2012, 08:34 PM
Will answer my own question,

Dim MenuItem As RadMenuItem = New RadMenuItem("Customer Service")
MenuItem.NavigateUrl = "javascript:;"
MenuItem.Attributes.Add("onclick", "xlaAFMopenfaq(1);")
0
Phil
Top achievements
Rank 2
answered on 24 Apr 2012, 12:42 AM
Hi:

May I add another solution:
Partial Class _Default
    Inherits MMPA.Purchasing.Web.BasePage
    '
    'Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (Not (IsPostBack)) Then
            Dim _windowReport As String = _windowReport = Request.Params("Window")
            If Not (_windowReport Is Nothing) Then
                ScriptManager.RegisterStartupScript(Me, Me.GetType, "openpopup", "CrystalReport( );", True)
            End If
        End If
    End Sub
    '
End Class

So, the menu entry would be something like
Default.aspx?Window=xyz

Phil
Tags
Menu
Asked by
Issac
Top achievements
Rank 1
Answers by
Issac
Top achievements
Rank 1
Phil
Top achievements
Rank 2
Share this question
or