[CLOSED] Retrieve Object TextField

  1. #1

    [CLOSED] Retrieve Object TextField

    
       protected void CreaSecciones(int IDdoc) {
    
                String sql = "";
                int IDsEC = 0;
    
                sql = "select ID_SECCION,SECCION,IMAGE_URL,IMAGE_PRES from DOCUMENTO_SECCIONES WHERE ID_DOCUMENTO=" + IDdoc.ToString();
    
                DataSet Mdata = new DataSet();
                DataTable Mtbla = new DataTable();
    
                Mdata = Class_dB.Tsql(sql);
                Mtbla = Mdata.Tables[0];
    
    
                for (int x = 0; x < Mtbla.Rows.Count - 1; x++) { 
    
                    ImageButton Mboton = new ImageButton();
                  
                    Mboton.ID = "btn_sec_" + x.ToString() ;
                    Mboton.Width = 200;
                    Mboton.Height = 50;                   
                    Mboton.ImageUrl=Mtbla.Rows[x][2].ToString().Trim();
                    Mboton.PressedImageUrl = Mtbla.Rows[x][3].ToString().Trim();
                    IDsEC = int.Parse(Mtbla.Rows[x][0].ToString());
    
                    Mboton.Listeners.Click.Handler = "#{DirectMethods}.Click_Generico(" + IDsEC + ");";
                    
                    pnel_01.Items.Add(Mboton);
    
                }
    
    
                pnel_01.UpdateContent();
    
    
            }
    
    
            [DirectMethod]
            public void Click_Generico(int idsub)
            {
                CreaPanel(idsub);
            }
    Here I need to retrieve the Textfield object, but there do not know how to retrieve this object.

    
     [DirectMethod]
            public void Click_Item(int op,String ItemSel)
            {
    
    
                String NombreObj = "";
                NombreObj = "txt_" + ItemSel;
    
                var ctl = X.GetCtl(NombreObj);
    
           
                
               
              
    
            }
    Last edited by Daniil; Aug 15, 2014 at 9:50 AM. Reason: [CLOSED]
  2. #2
    The sample you provided does not include a TextField. Please post a simplified sample which demonstrates how to reproduce the problem.
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 2
    Last Post: Apr 07, 2014, 11:00 PM
  2. [CLOSED] TextField Binding with sub object
    By jdacosta in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 13, 2013, 10:25 PM
  3. Replies: 7
    Last Post: Oct 15, 2013, 11:35 AM
  4. Replies: 2
    Last Post: Jun 13, 2013, 3:58 PM
  5. Replies: 0
    Last Post: Oct 21, 2011, 3:04 AM

Posting Permissions