// // GET: /Controls/SelectDict/ public ActionResult Index() { RoadFlow.Platform.DictionaryBLL Dict = new RoadFlow.Platform.DictionaryBLL(); string values = Request.QueryString["values"]; string rootid = Request.QueryString["rootid"]; string defaultValuesString = ""; System.Text.StringBuilder defautlSB = new System.Text.StringBuilder(); foreach (string value in values.Split(',')) { Guid id; if (!value.IsGuid(out id)) { continue; } defautlSB.AppendFormat("<div onclick=\"currentDel=this;showinfo('{0}');\" class=\"selectorDiv\" ondblclick=\"currentDel=this;del();\" value=\"{0}\">", value); defautlSB.Append(Dict.GetTitle(id)); defautlSB.Append("</div>"); } defaultValuesString = defautlSB.ToString(); ViewBag.defaultValuesString = defaultValuesString; return(View()); }