private void bindGrid() { Resource r = new Resource(); DataSet ds = r.GetMyLightBox(CurrentUser.UserId); this.grvMyLightBox.DataSource = ds.Tables[0].DefaultView; this.grvMyLightBox.DataBind(); }
private void bindLightBox() { Resource r = new Resource(); DataSet ds = r.GetMyLightBox(CurrentUser.UserId); // this.ddlMyLightBox.DataSource = ds.Tables[0].DefaultView; //this.ddlMyLightBox.DataBind(); this.ddlMyLightBox.DataSource = ds.Tables[0].DefaultView; this.ddlMyLightBox.DataTextField = "Title"; this.ddlMyLightBox.DataValueField = "id"; this.ddlMyLightBox.DataBind(); }