[英]Passing values from View to Action Method using href = Url.Action()
i am trying to passing those values to Confirmation
action result but i have 我正在尝试将这些值传递给Confirmation
操作结果,但是我有
syntax error :missing ; 语法错误:丢失;
var url = '@Url.Action("Confirmation", "BookReservation")/?record_locator=' + record_locator +'&hid='@Request.QueryString["hid"] ;
window.location.href = url;
is their any wrong with this code 他们的这段代码有什么错误吗
any advice 任何建议
First you create the url 首先,您创建网址
var url = @Url.Action("Confirmation", "BookReservation");
And then you add the parameters 然后添加参数
window.location.href = url + '?record_locator=' + record_locator + '&hid=' + @Request.QueryString["hid"] ;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.