So, these are the 2 pieces of code that are causing the error.
The View:
...
@foreach (FinalCampaign fc in @Model)
{
<h1>@fc.Camp.Id</h1>
<h2>@Html.ActionLink(@fc.Camp.Name, "GoToPage", "Home", fc.Camp.Id, null)</h2>
<p>@fc.Camp.CampaignStartDate - <font color="Blue"><u>@fc.Username</u></font></p>
<p>@fc.Camp.Description</p>
}
And here is the "GotoPage" function from my controller:
public ActionResult GoToPage(string id)
{
CampaignCommentsModel ff = new CampaignCommentsModel();
var cT = new CampaignTable(new OracleDatabase("DefaultConnection"));
Campaign camp = cT.GetCampaignById(id);
...
return View(ff);
}
And this is my problem: the "id" from GotoPage (the argument) is null, it doesn't receive the value from my view.