开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜