日期:2014-05-17  浏览次数:20444 次

mvc3中location.href传值怎么接收不到啊
前台 

 $('.btnEdit').bind('click', function () {
  var number="1002";
  location.href = "/aa/Edit/"+number;

  });

mvc3的controller中

  public ActionResult Edit(string number)
  {
   
  Directory directory = resourceService.GetDirByNum(number);
  return View();
  }

怎么接收不到 number 值呢 number 为null

------解决方案--------------------

location.href = "/aa/?number="+number;


string data=Request["number"];