开发者

How to send bool value on this URL in my asp.net mvc aplication

开发者 https://www.devze.com 2023-02-15 13:16 出处:网络
I have this code I am trying to send one more bool value to the URL.. and its goign to the ActionResult Perfec开发者_JS百科tly

I have this code I am trying to send one more bool value to the URL..

and its goign to the ActionResult Perfec开发者_JS百科tly

 public virtual ActionResult Index( int? id,bool? check ) {
}

But check allways geting null value?

is that something I am doing wrong?

thanks


for

RedirectUrl = string.Format( "/BvIndex/Index/{0}/" + check + "?bvIndex-mode=select", iReturn ) 

you need an action method with three parameters (not exactly the following but something like this)

 public virtual ActionResult Index( int? id,bool? check, string bvIndex-mode ) {
}


Have you registered a route key that corresponds to check in your global.asax?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号