Example #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();
    }
Example #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();
    }
Example #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);
            }
        }
    }
Example #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";
    }
Example #5
0
 protected void LoadListView()
 {
     ListViewGrid0.DataSource = ListViewBLL.getList(userid, Global.CONFIRMED).Take(5).ToList();
     ListViewGrid0.DataBind();
 }