Listview databind causes lost of formview Data
问题 within my code , after a research via a Formview , I need to call the listview.databind and this makes impossible to get the Formview data , even if in the screen they still appear . this is my code protected void DemandeSearchFormView_ItemInserting(object sender, FormViewInsertEventArgs e) { ListView listview = (ListView)panelPagination.FindControl("listdeclarations"); ViewState["search"] = "search"; listview.DataBind(); } the databind() normally call this method public