Example #1
0
        private void SaveTabs()
        {
            int    tabid;
            string tabName;
            int    tabSortOrder;

            foreach (DataGridItem dgi in dgTabs.Items)
            {
                tabid   = int.Parse(dgi.Cells[0].Text);
                tabName = ((TextBox)dgi.FindControl("txtTab")).Text.Replace("'", "''");
                cType.SetTabName(tabid, tabName);
                if (Int32.TryParse(((TextBox)dgi.FindControl("txtSortOrder")).Text, out tabSortOrder))
                {
                    cType.SetTabSortOrder(tabid, tabSortOrder);
                }
            }
        }