i want to grab some cookie value before page_load function in some control code
behind page:
is it possible ?
header.ascx.cs
----------------------
int userID = Request.cookies["cookName"];
private void Page_Load(object sender, System.EventArgs e)
{
}
error : Y:\AdminTools\netTools\ascx\header.ascx.cs(26): A field initializer
cannot reference the nonstatic field, method, or property
'netTools.header.ckObj'