I set a cookie using JavaScript when the user clicks a button:
document.cookie = "menuSize=Large";
I need to access this cookie in razor syntax so I can output the correct styles at the top of _Layout.cshtml every time the user changes pages:
@{
if (cookie == "Large")
{
<style>
LARGE STYLES
</style>
}
else
{
<style>
SMALL STYLES
</style>
}
}