I am new to the ASP.NET MVC framework. I am trying to get data from url parameters, then from my controller I want to return with ViewBag.
But the problem is, when I type that url in the browser, in debug mode, the data is not being returned correctly. Please have a look at
to see debug results. Any idea what's wrong here?
The Url I am using is:
http://localhost:60617/CategoryResearch/test/name=john?id=33
My controller:
public ActionResult test(string name, string id)
{
ViewBag.name = name;
ViewBag.id = id;
return View();
}