protected void Page_Load(object sender, EventArgs e)
        {
            myDAL         obj             = new myDAL();
            List <string> strDetailIDList = new List <string>();

            foreach (DataRow row in obj.getemails().Tables[0].Rows)
            {
                strDetailIDList.Add(row["email"].ToString());
            }

            emails = strDetailIDList.ToArray();
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            plan = Request.QueryString["id"];
            if (plan == null)
            {
                try
                {
                    plan = Session["planno"].ToString();
                }
                catch (Exception exc)
                {
                    Response.Redirect("Error.html");
                }
            }
            myDAL obj = new myDAL();

            if (plan == "Custom Plan")
            {
                name      = "Custom Plan";
                price     = Session["price"].ToString() + " PKR";
                query     = Session["query"].ToString();
                values    = Session["values"].ToString();
                is_custom = true;
            }
            else
            {
                obj.getplansd(Convert.ToInt32(plan), ref name, ref price, ref descrp);
            }
            if (name == "" && price == "" && descrp == "")
            {
                Response.Redirect("Error.html");
            }
            Label2.Text    = name;
            Label3.Text    = price;
            Label4.Text    = price;
            Label5.Text    = price;
            Label1.Visible = false;
            List <string> strDetailIDList = new List <string>();

            foreach (DataRow row in obj.getemails().Tables[0].Rows)
            {
                strDetailIDList.Add(row["email"].ToString());
            }

            arr = strDetailIDList.ToArray();
        }
示例#3
0
        private static DataSet getp60()
        {
            myDAL obj = new myDAL();

            return(obj.getemails());
        }