Am currently trying to replicate some behaviour that I'm accomplishing via jquery and the cookie plugin. Anyone know how the same could be acheived with razor?
for simplicity sake, could I cut javascript out of the equation and acheive the same with Razor? I know how to read cookie values in Razor but not sure about how to set them
Setting a cookie from a hyperlink in Razor?
Am currently trying to replicate some behaviour that I'm accomplishing via jquery and the cookie plugin.
Anyone know how the same could be acheived with razor?
for simplicity sake, could I cut javascript out of the equation and acheive the same with Razor?
I know how to read cookie values in Razor but not sure about how to set them
$("#mylink").click(function(){
$.cookie('justalonleycookie', 'true', { expires: 20, path: '/' });
location.reload();
});
thanks muchly
- Tim
something like this, and either hook up via ajax request, querystring url or look for the isPost from a submit button...
is working on a reply...