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