Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 864
  • Last Modified:

Call Javascript Function from @html.actionlink (VB)

How do I call a javascript function through an html.actionlink?  I'm trying to get a modal dialog to pop-up after "Create PO" is clicked....

<ul id="submenu">
    <li><a>Submenu |</a></li>
    <li>@Html.ActionLink("Create PO |", "Index", "Purchasing")</li>    
    <li>@Html.ActionLink("Email PO |", "About", "Home")</li>
    <li>@Html.ActionLink("Issue PO |", "About", "Home")</li>
</ul>
0
ProdigyOne2k
Asked:
ProdigyOne2k
1 Solution
 
CodeCruiserCommented:
Check this

http://forums.asp.net/t/1426262.aspx

<%= Html.ActionLink(item.TemplateName, "Edit", new { id = item.ID }, new { onlick = "DoSomeWork();" }) %>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now