Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey Everyone,

I had a context menu have 2 options.Every option jumps to different method in controller but i also want to pass a value(showing whose context menu is open). I am getting this value by catching the mouse click event, but don't know how to pass this value to there respective method.

These are the 2 option of context menu, open on right click of a div.

@Html.ActionLink("Open", "OpenTable")


@Html.ActionLink("Refresh", "RefreshTable")



and the div have a javascript function onclick() which get the value whose context menu is working.
Posted

1 solution

make in you're javascript code a ajax call to the controller. See http://api.jquery.com/jQuery.ajax/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900