Ejemplo n.º 1
0
        private void BindSite()
        {
            KingTop.BLL.SysManage.SysWebSite bllSysWebSite = new KingTop.BLL.SysManage.SysWebSite();
            DataTable dt = bllSysWebSite.GetList("USERIDSITE", Utils.getOneParams(userid));

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                if (int.Parse(dt.Rows[i]["SiteID"].ToString()) == SiteID)
                {
                    strSite += "<option value=\"index.aspx?siteid=" + dt.Rows[i]["SiteID"].ToString() + "&sitedir=" + dt.Rows[i]["Directory"].ToString() + "\" selected>" + dt.Rows[i]["SiteName"].ToString() + "</option>";
                }
                else
                {
                    strSite += "<option value=\"index.aspx?siteid=" + dt.Rows[i]["SiteID"].ToString() + "&sitedir=" + dt.Rows[i]["Directory"].ToString() + "\">" + dt.Rows[i]["SiteName"].ToString() + "</option>";
                }
            }
            strSite += "</select>";
        }