However, when that code gets executed, I get an error: "HttpCookie" does not contain a definition for "value".
This is the code that is executing (the red line is where the error is):
public class SetTheme : Telerik.Cms.Web.InternalPage
protected override void OnPreInit(EventArgs e)
if(Request.Cookies["style"] != null)
HttpCookie aCookie = Request.Cookies["style"];
this.Theme = Server.HtmlEncode(aCookie.value);
I have verified that my cookie exists and contains the desired value. However, is there something I'm doing wrong when trying to read this cookie? Is there another way to read the cookie?
Has anyone tried this before with successful results?