Esempio n. 1
0
    protected void btnAddListName_Click(object sender, EventArgs e)
    {
        ListViewBO obj = new ListViewBO();

        obj.ListName = txtListName.Text;
        ListViewBLL.insertListName(obj);
        ListViewGrid.DataSource = ListViewBLL.getList(Userid, Global.CONFIRMED);
        ListViewGrid.DataBind();
    }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Label l = (Label)Page.Master.FindControl("lblTitle");

        l.Text = "View List";

        Userid = SessionClass.getUserId();

        ListViewGrid.DataSource = ListViewBLL.getList(Userid, Global.CONFIRMED);
        ListViewGrid.DataBind();
    }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //ListDropDownList
        string userid = Request.QueryString[0];

        if (ListDropDownList.Items.Count == 0)
        {
            foreach (ObjectLayer.ListViewBO obj in ListViewBLL.getList(userid, Global.CONFIRMED))
            {
                ListDropDownList.Items.Add(obj.ListName);
            }
        }
    }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserIdOrTempUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "Manage Your Friends";
        if (!IsPostBack)
        {
            LoadFriendsList();
        }

        if (ListDropDownList.Items.Count == 0)
        {
            foreach (ObjectLayer.ListViewBO obj in ListViewBLL.getList(Userid, Global.CONFIRMED))
            {
                ListDropDownList.Items.Add(obj.ListName);
            }
        }

        Panel1.DefaultButton = "SearchButton";
    }
Esempio n. 5
0
 protected void LoadListView()
 {
     ListViewGrid0.DataSource = ListViewBLL.getList(userid, Global.CONFIRMED).Take(5).ToList();
     ListViewGrid0.DataBind();
 }