0

我无法访问:

http://localhost:54158/Bull/Details/S.No%20GERRY
http://localhost:54158/Bull/Edit/S.No%20Gurukul
http://localhost:54158/Bull/Edit/S.No%20GR%2013

虽然我可以访问:

http://localhost:54158/Bull/Details/GR%20001
http://localhost:54158/Bull/Edit/TP%20001

简而言之,我无法访问以 .(periods) 作为参数的 URL。

public ActionResult Details(String id)
{
    Bull bull = db.Bulls.Find(id);
    if (bull == null)
    {
        return HttpNotFound();
    }
    return View(bull);
}

我尝试在我的代码中放置断点,但是对于不可访问的 URL,应该触发的操作不是。

4