private void bindData() { PenjaminanDataset.UserProfileRow dr = UserProfile.selectUserProfileByID(eID); Models.PenjaminanDatasetTableAdapters.u_roleTableAdapter taRole = new Models.PenjaminanDatasetTableAdapters.u_roleTableAdapter(); Models.PenjaminanDatasetTableAdapters.DivisiTableAdapter ta = new Models.PenjaminanDatasetTableAdapters.DivisiTableAdapter(); DropDownList1.DataSource = (PenjaminanDataset.DivisiDataTable)ta.GetDataByID(Convert.ToInt16(dr.division)); RoleList.DataSource = (PenjaminanDataset.u_roleDataTable)taRole.GetDataRoleByID(Convert.ToInt16(dr.role)); DropDownList1.DataBind(); RoleList.DataBind(); txtUsername.Value = dr.username.ToString(); txtPassword.Value = dr.password.ToString(); //txtRole.Value = dr.role.ToString(); //txtDivision.Value = dr.division.ToString(); }
private void bindData() { PenjaminanViewDataset.AccessRow dr = Access.selectAccessByID(eID); Models.PenjaminanDatasetTableAdapters.u_roleTableAdapter taRole = new Models.PenjaminanDatasetTableAdapters.u_roleTableAdapter(); Models.PenjaminanDatasetTableAdapters.tPageTableAdapter ta = new Models.PenjaminanDatasetTableAdapters.tPageTableAdapter(); PageList.DataSource = (PenjaminanDataset.tPageDataTable)ta.GetDataByID(Convert.ToInt16(dr.fk_page)); RoleList.DataSource = (PenjaminanDataset.u_roleDataTable)taRole.GetDataRoleByID(Convert.ToInt16(dr.fk_role)); PageList.DataBind(); RoleList.DataBind(); //txtUsername.Value = dr.username.ToString(); //txtPassword.Value = dr.password.ToString(); //txtRole.Value = dr.role.ToString(); //txtDivision.Value = dr.division.ToString(); }