c# - Error after bind JQGgrid to bind other asp.net control -


I have a problem when I want to force a control after its Jqgrid component bond

ASP.NET:

  & lt;% - list lists -%> & Lt; Table alignment = "center" limit = "0" cellpadding = "2" cell area = "2" & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; trirand: JQGrid runat = "server" ID = "JQGChoixSujets" height = "340"  

C #

  protected void Page_load (object sender, event aRGS) {try (if (page. ISPostback) {if (JQGChoixSujets.AjaxCallBackMode == AjaxCallBackMode.RequestData || JQGChoixSujets.AjaxCallBackMode == AjaxCallBackMode.Search) {BindGridView ();}}}  

....

  private void BindGridView () {try {_bsChoixSujet = new BSChoixSujet (); _lstBEChoixSujet = _bsChoixSujet.GetChoixSujets (_contact.IdCrm, EnumChoixSujetPrefix.SE ); if (_lstBEChoixSujet = null & amp ;! & amp; _lstBEChoixSujet.Count & gt; 0) {// Mise à plate var result = selection of Choix in _lstBEChoixSujet new {UpDown = String.Empty, .... }; JQGChoixSujets.DataSource = Result; JQGChoixSujets.DataBind (); // Overall the total HDFNumberRows.Value = _lstBEChoixSujet.Count () .toString (); // NBRED Choix de sujets offer hdfMemoireNbrPropositionsRealises.Value = _lstBEChoixSujet.Where ( X = & gt; Kshkthemesujetksujitkkodkstartsvith (Constanteskkst_preefiks_kod_sujit_etudiant)). Calculate () ToString () .; }}  

So the problem is, my JQGrid is bound, but my hidden area is not HDFNumberRows & amp; HdfMemoireNbrPropositionsRealises

If I'm out AjaxCallBackMode.RequestData bound to these controls, are obliged without my hiddenfield error, but I need to force them inside AjaxCallBackMode.RequestData.


Comments