public void Perform()
        {
            GameMenuDetails gm = new GameMenuDetails();
            DataTable       dt = new DataTable();

            dt = gm.MarketPriceAndOthers(ddlSector1.SelectedValue.ToString(), ddlCompany1.SelectedValue.ToString(), Session["UserID"].ToString());

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                txtPriceperShare.Text = dt.Rows[i][0].ToString();
            }
        }
        protected void ddlCompany1_SelectedIndexChanged(object sender, EventArgs e)
        {
            txtTotalPrice.Text   = "0.00";
            txtNumberOFbyes.Text = "0";
            GameMenuDetails gm = new GameMenuDetails();
            DataTable       dt = new DataTable();

            dt = gm.MarketPriceAndOthers(ddlSector1.SelectedValue.ToString(), ddlCompany1.SelectedValue.ToString(), Session["UserID"].ToString());

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                txtPriceperShare.Text = dt.Rows[i][0].ToString();
            }
        }
        protected void txtNumberOFbyes_TextChanged(object sender, EventArgs e)
        {
            try
            {
                GameMenuDetails gm = new GameMenuDetails();
                DataTable       dt = new DataTable();
                dt = gm.MarketPriceAndOthers(ddlSector1.SelectedValue.ToString(), ddlCompany1.SelectedValue.ToString(), Session["UserID"].ToString());

                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    txtPriceperShare.Text = dt.Rows[i][0].ToString();
                }
                Double value = Convert.ToDouble(txtNumberOFbyes.Text) * Convert.ToDouble(txtPriceperShare.Text);
                txtTotalPrice.Text       = value.ToString();
                lblErorMessage.InnerText = "";
            }
            catch (Exception ex)
            {
            }
        }