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_addgrouper_ctrl { public partial class DsMain : DataSourceRepeater { public DataSet1.amsecusersDataTable DATA { get; private set; } public void InitDsMain(PageWeb pw) { DataSet1 ds = new DataSet1(); this.DATA = ds.amsecusers; this.EventItemChanged = "OnDsDeListItemChanged"; this.EventClicked = "OnDsListClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsMain"); this.Button.Add("b_3"); this.Register(); } public void Retrieve() { string sql = @" SELECT amu.user_name, amu.description FROM amsecusers amu where amu.user_type = '2'"; sql = WebUtil.SQLFormat(sql); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }