ntspirit11
New Member
I need to pass in the css file name to my razor page but I'm having difficulty getting the session to take.Here is the line I have:\[code\]<link href="http://stackoverflow.com/questions/14072025/@Url.Content("~/Content/epp.css")" rel="stylesheet" type="text/css" />\[/code\]I need to pass in 'epp' as a \[code\]Session["Css"]\[/code\] but I haven't figured out how to do this.I have tried:\[code\]<link href="http://stackoverflow.com/questions/14072025/@Url.Content("~/Content/@HttpContext.Current.Session["Css"].ToString().css")" rel="stylesheet" type="text/css" />\[/code\]but that wasn't working.Any suggestions?