Posts

Showing posts from April, 2013

Best way Excel Export

the use of hyperlink instead of button is easier to export Excel from the back-end. because in button need the ajax request. and it is cumbersome to produce file with Ajax request.  

DataTable clone c#

        public DataTable createData() {             DataTable dt = new DataTable();             DataRow dr;             dt.Columns.Add("ID", typeof(string));             dt.Columns.Add("First Name", typeof(string));             dt.Columns.Add("Last Name", typeof(string));             for (int i = 0; i < 30; i++)             {                 dr = dt.NewRow();                 dr[0] = "id_" + i.ToString();    ...

ajax call

 OnSubmitData="Store1_Submit"         var submitValue = function (grid, hiddenFormat, format, hiddenFormat1, format1 ) {             hiddenFormat.setValue(format);             grid.submitData(false, { isUpload: true });         };                             string format = this.FormatType.Value.ToString();