I am using the default Controller named "Home".
I have the following ActionResult:
public ActionResult SetID(string ID)
{
int? result = MyGateway.GetAccountByID(ID);
Common.IDNum = result;
return View("Index","Home");
}
I would like to pass the IDNumber like:
http://localhost:3314/Home/SetID/AA3420
...and not like...
http://localhost:3314/Home/SetID?ID=AA3420
The link above is beginning generated by a view which returns a list. To select a record, they click "Select" which is the link above. I am currently setting the "AA3420" to a Session Variable located in a CS file elsewhere called Common.cs.
How can I get my URL to look like: http://localhost:3314/Home/SetID/AA3420
?