asp.net mvc 4: adding parameter to Scripts.Render path
I would like to do the following:
@Scripts.Render("~/bundles/jquery?version=1"])
the version value has to be dynamic and should match the value defined in
a cookie.
How can I add this parameter to Scripts.Render ?
I've tried something like that with jQuery but with no luck:
@Scripts.Render("~/bundles/jquery?version=" + $.cookie('version'))
No comments:
Post a Comment