private void loadtStakeList()
        {
            DataTable dt = new DataTable();
            StakeInfoBLL stakeInfo = new StakeInfoBLL();
            try
            {
                dt = stakeInfo.GetStakeInfoList();
                ddlstakeList.DataSource = dt;
                ddlstakeList.DataTextField = "StakeName";
                ddlstakeList.DataValueField = "StakeId";
                ddlstakeList.DataBind();
                ddlstakeList.Items.Insert(0, "Select Here..");
                ddlstakeList.SelectedIndex = 0;
                ddlstakeList.Items[0].Value = "";

            }
            catch (Exception ex)
            {

                string message = ex.Message;
                if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; }
                MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");");
            }
        }
Ejemplo n.º 2
0
        private void GetStakeInfoList()
        {
            try
            {
                DataTable dt = new DataTable();
                StakeInfoBLL stakeInfo = new StakeInfoBLL();
                dt = stakeInfo.GetStakeInfoList();
                if (dt.Rows.Count > 0)
                {
                    gridviewStake.DataSource = dt;
                    gridviewStake.DataBind();
                }
                GridViewStyle();
            }
            catch (Exception ex)
            {
                string message = ex.Message;
                if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; }
                MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");");

            }
        }