public GetFilled ( string templateSuffix, bool validate, bool throwException, string &retMessage ) : string | ||
templateSuffix | string | |
validate | bool | |
throwException | bool | |
retMessage | string | |
return | string |
public virtual string GetFilled(string templateSuffix, bool validate, bool throwException, out string retMessage)
{
string message = "";
string template = GetTemplate(templateSuffix, validate, throwException, out message);
if ((string.IsNullOrEmpty(template)==false) && ((validate ==false) || IsValid(throwException, out message)))
{
template = ProcessListSection(template);
template = ProcessBoolSection(template);
template = ProcessPlaceHolder(template);
}
retMessage = message;
return template;
}
public static string GetSaveView(long subscriberId, long pageNo, long itemsPerPage, long dataIndex, string templateSuffix) { string htmlSaveScript = GetSaveScript(); string htmlSaveDetail = GetSaveDetailView(subscriberId, pageNo, itemsPerPage, dataIndex, templateSuffix); string message; var templateSave = new TemplateSubscriberSave { SaveScript = htmlSaveScript, SaveDetail = htmlSaveDetail }; string htmlSave = templateSave.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException, out message); return htmlSave; }