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?
精彩评论