Struggling to pass the css file name to my razor page through session. Here's what I've got:
Current line of code:
<link href="@Url.Content("~/Content/epp.css")" rel="stylesheet" type="text/css" />
Trying to pass 'epp' as a Session["Css"]
, but can't figure it out.
Attempted solution:
<link href="@Url.Content("~/Content/@HttpContext.Current.Session["Css"].ToString().css")" rel="stylesheet" type="text/css" />
This wasn't effective. Open to suggestions!