This solution has evaded me all day. I am getting data from my database, but I would like to save the data somewhere as opposed to going to the database for every page. How do I do this?
I retrieve the data from my controller...
public ActionResult Inquiry(string Num, DateTime Date)
{ ...
Bill myBill = new Bill(Num, Date, myConnections);
//This is where I am trying to store my data...
return View("Inquiry", myBill);
}
Then on my Inquiry page...
public ActionResult Summary(string Num, DateTime Date)
{ ...
Bill myBill = new Bill(Num, Date, myConnections);
//... Data get retrieved here :(
return View("Summary", myBill);
}
It is enough data to look away from storing in a session. Is it possible to save to the Model forlder and just use an inherit on the aspx page?
I am a young bud in the programming world, worse .NET MVC
I should be able to figure out where to go from there. Any ideas?