public static string GenerateDefaultCode(int TagID, NameValueCollection Parameter) { TagModel Tag = GetModel(TagID); ITagDataProvider dataProvider = String.IsNullOrEmpty(Tag.DataProvider) ? null : (ITagDataProvider)Activator.CreateInstance(Type.GetType(Tag.DataProvider)); XmlDocument xdoc = dataProvider.GetData(Parameter); string html = XsltHelper.TransformToHtml(HttpContext.Current.Server.MapPath(Tag.XsltTemplate), xdoc, Encoding.UTF8); string htmlBody = RegUtil.GetBodyContent(html); return(htmlBody); }