I am using action link in my application.
I am having some requirement to call javascript on it's click event.
I know that I can do that using following code.
@Html.ActionLink("Home","Index","Main",new{@onclick="OnIndexCall"});
Now on the click event of action link I am computing two values in function and i also need to pass that values to the page in which I am redirecting.
I don't know how can I do that.
Please is there any way to pass the calculated value in from javascript function to redirection page?
EDIT :-
function OnIndexCall(){
var a=10;
var b=a+20;
}
Now i need to pass these "a" and "b" values to the redirection page.