jquery - How to change the route value of a action link and keep the id value we need in mvc c# -
here problem.i have html action link
have given id
.(because when user clicks on want id
value controller.it works fine)
this html action link.
<div class="col-md-6 btn btn-default"> @html.actionlink("more details", "details", new { @did = @items.cruise_id }) </div>
this controller,where id value.
public actionresult details(string did) { debug.writeline(did); return view(); }
then, when user clicks on link `path/url' in browser address bar looks this
http://localhost:3199/home/details?did=ma20160821bribri
what i'm asking ,
- is possible change url or path need, should have
id
(in casedid
),to value in controller using c# or jquery. - if possible, when user copy,paste , run url, should work fine line same.
- the main idea ,i want
did
,but should not show in url(path), , when copy/paste should work fine.
hope this.
Comments
Post a Comment