public void BindMemberGrid()
        {
            objService = new ServeAtDoorstepService();
            DataTable dtMem = objService.SelectAllMembership();

            if (dtMem.Rows.Count > 0)
            {
                //decimal dPageSize = (dt.Rows.Count / 4M);
                //GridView1.PagerSettings.PageButtonCount = Convert.ToInt32(Math.Floor(dPageSize));
                //GridView1.PageSize = Convert.ToInt32(Math.Ceiling(dPageSize));
            }
            gvMember.DataSource = dtMem;
            gvMember.DataBind();
        }
 void LoadMembership()
 {
     ddlMembership.Items.Clear();
     objService = new ServeAtDoorstepService();
     DataTable dt1 = objService.SelectAllMembership();
     ListItem listItem = new ListItem();
     listItem.Text = "<Select Membership>";
     listItem.Value = "0";
     ddlMembership.Items.Add(listItem);
     for (int i = 0; i < dt1.Rows.Count; i++)
     {
         listItem = new ListItem();
         listItem.Text = dt1.Rows[i]["MemberShipName"].ToString();
         listItem.Value = dt1.Rows[i]["MemberShipID"].ToString();
         ddlMembership.Items.Add(listItem);
     }
 }