protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!Page.IsPostBack) { string EditID; EditID = Request.QueryString["id"]; if (EditID.Trim().Length < 1) { msg.ShowError("Unable to load the requested product."); } else { Product p = new Product(); p = MTApp.CatalogServices.Products.Find(EditID); if (p != null) { ViewState["ID"] = EditID; } else { msg.ShowError("Unable to load the requested product."); } p = null; } LoadCategories(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Mannschaftenladen(); } int id = Convert.ToInt32(EditID.ToString()); if (id > 0) { tbl(); ueberschrift(); } }