protected void ViewButton_Click(object sender, EventArgs e) { try { UserAccountBLL userAccount = new UserAccountBLL(); DataTable dt = userAccount.getUserIncomeStatementById(txtbxUserId.Text, LumexLibraryManager.ParseAppDate(fromDateTextBox.Text), LumexLibraryManager.ParseAppDate(toDateTextBox.Text)); DesignGridviewBalaceSheet(dt); } catch (Exception ex) { string message = ex.Message; if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; } MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");"); } finally { //MyAlertBox("MyOverlayStop();"); } }