if (Request.QueryString["TemplateIdLayout"] == null) { // Im doing an Insert EditForm.Visible = false; AddForm.Visible = true; }