private static string GetListScript() { string message; var templateList = new TemplateInfoCategoryList { ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl) }; string htmlScript = templateList.GetScriptFilled(true, UtilsGeneric.LoadMinJs, UtilsGeneric.Validate, UtilsGeneric.ThrowException, out message); return htmlScript; }
public static string GetListView(long infoCategoryId, long pageNo, long itemsPerPage, long dataIndex, string templateSuffix) { string htmlListScript = GetListScript(); string htmlListDetail = GetListDetailView(pageNo, itemsPerPage, dataIndex, templateSuffix, false); string message; var templateList = new TemplateInfoCategoryList { ListScript = htmlListScript, ListDetail = htmlListDetail, DataIndex = dataIndex.ToString("N0", CultureInfo.InvariantCulture) }; string htmlList = templateList.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException, out message); return htmlList; }