I am using ViewState to save some data from a page to another on sharepoint, and when I write this line at the Page_Load event I get an error but it doesn't say anything. Any clue?
 Label l = new Label();
 l.Text = ViewState["user"].ToString();
and also this one
Session["user"] = (sender as LinkButton).Text;