using System; using CoreSavingLibrary; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; namespace Saving.Applications.admin.w_sheet_ad_editgrouper_ctrl { public partial class DsUserGroupUpdate : DataSourceFormView { public DataSet1.amsecusersDataTable DATA { get; set; } public void InitDsUserGroupUpdate(PageWeb pw) { DataSet1 ds = new DataSet1(); this.DATA = ds.amsecusers; this.EventItemChanged = "OnDsUserGroupUpdateChanged"; this.EventClicked = "OnDsUserGroupUpdateClicked"; this.InitDataSource(pw, FormView1, this.DATA, "dsUserGroupUpdate"); this.Register(); } public void RetrieveUGupdate(string user_name) { string sql = @" SELECT * FROM amsecusers where user_type = '2' and user_name = {0}"; sql = WebUtil.SQLFormat(sql, user_name); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }