Now here is the weird thing. First i am running it locally on the built in vs2008 web server.
I load my control in fine, do a postback from a linkbutton, locally on my machine it all works fine, no issue.
However when it goes onto my host, it falls over with the message:
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.
Now i also load controls dynamically and use postbacks and things in the admin area of the site...and that works fine, however my front end just keeps failing? See the code behing below:
public partial class Index : System.Web.UI.Page
private Data.Repositories.RepoClientPage repo = new DJSWebCMS.Data.Repositories.RepoClientPage(Helpers.AppSettings.DatabaseConnectionString);
public Data.DataObjects.PageDisplay DisplayPage
protected void Page_Load(object sender, EventArgs e)
if (String.IsNullOrEmpty(Helpers.Request.Path) && Helpers.Request.ID <= 0)
View Complete Post