Esempio n. 1
0
        private string FormatAttribute(string formatString)
        {
            var buttonClick = formatString;

            if (!DataFields.IsNullOrEmpty())
            {
                var      dataFields = DataFields.Split(',');
                object[] param      = new object[dataFields.Length];
                for (int i = 0; i < dataFields.Length; i++)
                {
                    param[i] = RowData[dataFields[i]];
                }
                buttonClick = string.Format(CultureInfo.CurrentCulture, buttonClick, param);
            }
            return(buttonClick);
        }