Monday 29 July 2013

Find controls inside table in asp.net c#

 string allTextBoxValues = "";
        foreach (Control c in tableid.Controls)//table control
        {
            foreach (Control childc in c.Controls)//table row
            {
                foreach (Control dd in childc.Controls)//table cell
                {
                    if (dd is TextBox) //controls
                    {
                        allTextBoxValues += ((TextBox)dd).Text + ",";
                    }
                }
               
            }
        }

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...