ERROR Rendering ControlErrors while compiling a Template. Please try the following to solve the situation: * If the problem is about missing/invalid references or multiple defines either try to load the missing references manually (in the compiling appdomain!) or Specify your references manually by providing your own IReferenceResolver implementation. See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details. Currently all references have to be available as files! * If you get 'class' does not contain a definition for 'member': try another modelType (for example 'null' to make the model dynamic). NOTE: You CANNOT use typeof(dynamic) to make the model dynamic! Or try to use static instead of anonymous/dynamic types. More details about the error: - error: (32, 36) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'ChildIds' and no extension method 'ChildIds' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (33, 30) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'FindAttribute' and the best extension method overload 'Emanager.Razor.HtmlProductExtensions.FindAttribute(Emanager.Data.Abstractions.Ecommerce.Pattern.ProductCategoryCommon, string)' has some invalid arguments - error: (33, 30) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Data.Abstractions.Ecommerce.Pattern.ProductCategoryCommon' - error: (39, 14) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'CategoryChildren' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.CategoryChildren(Emanager.Razor.Html)' has some invalid arguments - error: (39, 14) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Razor.Html' - error: (45, 29) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'ChildIds' and no extension method 'ChildIds' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (45, 63) 'Emanager.Razor.HtmlProductExtensions.Products(Emanager.Razor.EcommerceModel)' is a 'method', which is not valid in the given context - error: (52, 53) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Path' and no extension method 'Path' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (60, 17) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'CategoryProducts' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.CategoryProducts(Emanager.Razor.Html)' has some invalid arguments - error: (60, 17) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Razor.Html' - error: (62, 18) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'FindAttribute' and the best extension method overload 'Emanager.Razor.HtmlProductExtensions.FindAttribute(Emanager.Data.Abstractions.Ecommerce.Pattern.ProductCategoryCommon, string)' has some invalid arguments - error: (62, 18) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Data.Abstractions.Ecommerce.Pattern.ProductCategoryCommon' - error: (63, 18) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'HideBackorderedProducts' and no extension method 'HideBackorderedProducts' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (74, 18) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Parent' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.Parent(Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory)' has some invalid arguments - error: (74, 18) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory' - error: (147, 23) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (157, 14) 'Emanager.Razor.Html<><>>>' does not contain a definition for 'CategoryImage' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.CategoryImage(Emanager.Razor.Html, Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory, object)' has some invalid arguments - error: (157, 33) Argument 2: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory' - error: (167, 53) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Description' and no extension method 'Description' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (167, 75) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'ShortDescription' and no extension method 'ShortDescription' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (167, 101) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Description' and no extension method 'Description' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (513, 18) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Parent' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.Parent(Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory)' has some invalid arguments - error: (513, 18) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory' - error: (514, 21) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'CategoryChildren' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.CategoryChildren(Emanager.Razor.Html)' has some invalid arguments - error: (514, 21) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Razor.Html' - error: (565, 19) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (577, 23) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'ShortDescription' and no extension method 'ShortDescription' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (646, 18) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Parent' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.Parent(Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory)' has some invalid arguments - error: (646, 18) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory' - error: (702, 23) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (712, 27) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Description' and no extension method 'Description' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (1333, 18) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Parent' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.Parent(Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory)' has some invalid arguments - error: (1333, 18) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Data.Abstractions.Ecommerce.Model.ProductCategory' - error: (1334, 20) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'CategoryChildren' and the best extension method overload 'Emanager.Razor.HtmlCategoryExtensions.CategoryChildren(Emanager.Razor.Html)' has some invalid arguments - error: (1334, 20) Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable' to 'Emanager.Razor.Html' - error: (1385, 19) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) - error: (1397, 23) 'System.Collections.Generic.IEnumerable' does not contain a definition for 'ShortDescription' and no extension method 'ShortDescription' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) Temporary files of the compilation can be found in (please delete the folder): C:\Windows\TEMP\RazorEngine_ft1cuwic.ede The template we tried to compile is: ------------- START ----------- @{ var category = @Model.Model; var onlyOneSubCategory = category.ChildIds.Count() == 1; var needsQuote = bool.Parse(category.FindAttribute("NeedsQuote") ?? "false"); } @if(onlyOneSubCategory) { category = category.CategoryChildren().FirstOrDefault(); } @{ var isTableView = category.ChildIds.Count() == 0 && category.Products.Any(); var isIntermediatePage = false; } @if(!isTableView&& !onlyOneSubCategory) { isIntermediatePage = needsQuote ? false : category.Path.Count() == 2; } @if(isTableView && !isIntermediatePage) { var now = DateTime.UtcNow; var products = category.CategoryProducts().Where(x=>x != null && !x.IsHidden).ToList(); var mainCat = Model.Model; var qtyHeader = mainCat.FindAttribute("quantity") ?? ""; if (Model.Model.HideBackorderedProducts) { products = products.Where(x => x.QuantityInStock > 0).ToList(); } var pricePoints = products.SelectMany(a => a.Discounts) .Where(a => a.StartDate <= now="" &&="" a.EndDate="">= now) .OrderBy(a => a.MinimumQuantity) .Select(a => a.MinimumQuantity).Distinct().ToList(); pricePoints.Insert(0,1); var breadcrumbs = new List(); var parent = category.Parent(); while (parent != null) { breadcrumbs.Add(parent); parent = parent.Parent(); } breadcrumbs.Reverse(); var extraColumnHeaders = products .SelectMany(a => a.Attributes) .Where(a => a.Name == a.Value as string) .Select(a => a.Category) .Distinct() .ToList(); products = products .OrderBy(a => a.Attributes.Where(b => b.Category == "Metadata" && b.Name == "DisplayOrder" && b.Value != null) .Select(b =>Convert.ToInt64(b.Value)) .FirstOrDefault()) .ThenBy(a=>a.SKU) .ToList(); var mainHeaderColNumber = 2; var mainCssClass = "col-lg-offset-2 col-lg-8";

@category.Name.RemoveHtml()

@Html.CategoryImage(category,new {@class="img-responsive"})
@Raw(string.IsNullOrWhiteSpace(category.Description)?category.ShortDescription:category.Description)
@foreach(var extraHeader in extraColumnHeaders) { } @foreach(var product in products) { var showQuickShipColor = bool.Parse(product.FindAttribute("QuickShip") ?? "false"); var styleForQuickShip = "noQuickShip"; if (showQuickShipColor) { styleForQuickShip = "isQuickShipItem"; } var basePrice = product.Prices.FirstOrDefault(); var priceBreaksQuery = product.Discounts .Where(a => a.StartDate <= now="" &&="" a.EndDate="">= now) .OrderBy(a => a.MinimumQuantity) .Select(a => basePrice.Amount - a.Amount); var priceBreaks = priceBreaksQuery.ToList(); priceBreaks.Insert(0,basePrice.Amount); @foreach(var extraHeader in extraColumnHeaders) { var extraColumn = product.Attributes .Where(a => a.Category == extraHeader) .Select(a => (a.Value != null && a.Value is string ? a.Value.ToString() : "N/A")) .DefaultIfEmpty("N/A") .FirstOrDefault(); } @foreach(var br in priceBreaks) { } }
Part # Product Name Price@Raw(extraHeader)Qty Add to Cart
@product.SKU @product.Name@extraColumn@br.ToString("c")
@foreach(var product in products) { var showQuickShipColor = bool.Parse(product.FindAttribute("QuickShip") ?? "false"); var styleForQuickShip = "noQuickShip"; if (showQuickShipColor) { styleForQuickShip = "isQuickShipItem"; } var basePrice = product.DefaultPrice;

@product.Name

Part #: @product.SKU

@foreach(var extraHeader in extraColumnHeaders) { var extraColumn = product.Attributes .Where(a => a.Category == extraHeader) .Select(a => (a.Value != null && a.Value is string ? a : null)) .DefaultIfEmpty(null) .FirstOrDefault(); if (extraColumn != null) {

@extraColumn.Category : @extraColumn.Value.ToString()

} else {

} }

Price: $@product.DefaultPrice.Amount

}
} else if(isIntermediatePage) { var breadcrumbs = new List(); var parent = category.Parent(); var children = category.CategoryChildren().Where(x => x != null && !bool.Parse(x.FindAttribute("IsHidden") ?? "false")); while (parent != null) { breadcrumbs.Add(parent); parent = parent.Parent(); } breadcrumbs.Reverse();

@category.Name

@Raw(category.ShortDescription)
foreach(var childCategory in children.OrderBy(x => double.Parse(x.FindAttribute("DisplayOrder") ?? "10000"))) { } } else if (needsQuote) { var breadcrumbs = new List(); var parent = category.Parent(); while (parent != null) { breadcrumbs.Add(parent); parent = parent.Parent(); } breadcrumbs.Reverse();

@category.Name

@Raw(category.Description)

Request Information

} else { var breadcrumbs = new List(); var parent = category.Parent(); var children = category.CategoryChildren().Where(x => x != null && !bool.Parse(x.FindAttribute("IsHidden") ?? "false")); while (parent != null) { breadcrumbs.Add(parent); parent = parent.Parent(); } breadcrumbs.Reverse();

@category.Name

@Raw(category.ShortDescription)
foreach(var childCategory in children.OrderBy(x => double.Parse(x.FindAttribute("DisplayOrder") ?? "10000"))) { var products = childCategory.CategoryProducts(); if (products.Any() && products.All(x => x.QuantityInStock == 0)) { continue; } } } ------------- END ----------- The generated source code is: ------------- START ----------- //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace CompiledRazorTemplates.Dynamic { using System; using System.Collections.Generic; using System.Linq; using Emanager.Razor; using Emanager.Utilities; using Emanager.Data.Abstractions.Ecommerce.Model; using Emanager.Data.Abstractions; public class RazorEngine_a9659ac3678045b482757054fb038882 : Emanager.Razor.RazorBase<><>>> { public RazorEngine_a9659ac3678045b482757054fb038882(Emanager.Data.IDependencyResolver resolver, System.Func loadWebsite) : base(resolver, loadWebsite) { } public override void Execute() { var category = @Model.Model; var onlyOneSubCategory = category.ChildIds.Count() == 1; var needsQuote = bool.Parse(category.FindAttribute("NeedsQuote") ?? "false"); WriteLiteral("\n\n"); if(onlyOneSubCategory) { category = category.CategoryChildren().FirstOrDefault(); } WriteLiteral("\n"); var isTableView = category.ChildIds.Count() == 0 && category.Products.Any(); var isIntermediatePage = false; WriteLiteral("\n"); if(!isTableView&& !onlyOneSubCategory) { isIntermediatePage = needsQuote ? false : category.Path.Count() == 2; } WriteLiteral("\n\n"); if(isTableView && !isIntermediatePage) { var now = DateTime.UtcNow; var products = category.CategoryProducts().Where(x=>x != null && !x.IsHidden).ToList(); var mainCat = Model.Model; var qtyHeader = mainCat.FindAttribute("quantity") ?? ""; if (Model.Model.HideBackorderedProducts) { products = products.Where(x => x.QuantityInStock > 0).ToList(); } var pricePoints = products.SelectMany(a => a.Discounts) .Where(a => a.StartDate <= now="" &&="" a.EndDate="">= now) .OrderBy(a => a.MinimumQuantity) .Select(a => a.MinimumQuantity).Distinct().ToList(); pricePoints.Insert(0,1); var breadcrumbs = new List(); var parent = category.Parent(); while (parent != null) { breadcrumbs.Add(parent); parent = parent.Parent(); } breadcrumbs.Reverse(); var extraColumnHeaders = products .SelectMany(a => a.Attributes) .Where(a => a.Name == a.Value as string) .Select(a => a.Category) .Distinct() .ToList(); products = products .OrderBy(a => a.Attributes.Where(b => b.Category == "Metadata" && b.Name == "DisplayOrder" && b.Value != null) .Select(b =>Convert.ToInt64(b.Value)) .FirstOrDefault()) .ThenBy(a=>a.SKU) .ToList(); var mainHeaderColNumber = 2; var mainCssClass = "col-lg-offset-2 col-lg-8"; WriteLiteral(" \n
  • (ResolveUrl("~/index.htm") , 1924), false) ); WriteLiteral(">Home
  • \n"); foreach(var breadCategory in breadcrumbs) { WriteLiteral(" \t
  • (breadCategory.Name.SanitizeFileName() , 2039), false) , Tuple.Create(Tuple.Create("", 2077), Tuple.Create("/", 2077), true) , Tuple.Create(Tuple.Create("", 2078), Tuple.Create(breadCategory.Id , 2078), false) ); WriteLiteral(">"); Write(breadCategory.Name); WriteLiteral("
  • \n"); } WriteLiteral(" \n"); WriteLiteral("\t\n\t\t

    "); Write(category.Name.RemoveHtml()); WriteLiteral("

    \n\t\t\n"); WriteLiteral("\t\t\t"); Write(Html.CategoryImage(category,new {@class="img-responsive"})); WriteLiteral("\n\t\t

    \n\t\t\n"); WriteLiteral("\t\t\t"); Write(Raw(string.IsNullOrWhiteSpace(category.Description)?category.ShortDescription:category.Description)); WriteLiteral("\n\t\t
    \n\t
    \n"); WriteLiteral("\t\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tPart #\n\t\t\t\t\tProduct Name\n\t\t\t\t\tPrice\n"); foreach(var extraHeader in extraColumnHeaders) { WriteLiteral("\t\t\t\t\t\t"); Write(Raw(extraHeader)); WriteLiteral("\n"); } WriteLiteral("\t\t\t\t\tQty\n\t\t\t\t\tAdd to Cart\n\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n" + ""); foreach(var product in products) { var showQuickShipColor = bool.Parse(product.FindAttribute("QuickShip") ?? "false"); var styleForQuickShip = "noQuickShip"; if (showQuickShipColor) { styleForQuickShip = "isQuickShipItem"; } var basePrice = product.Prices.FirstOrDefault(); var priceBreaksQuery = product.Discounts .Where(a => a.StartDate <= now="" &&="" a.EndDate="">= now) .OrderBy(a => a.MinimumQuantity) .Select(a => basePrice.Amount - a.Amount); var priceBreaks = priceBreaksQuery.ToList(); priceBreaks.Insert(0,basePrice.Amount); WriteLiteral("\t\t\t\t\t(styleForQuickShip , 3595), false) ); WriteLiteral(">\n\n\t\t\t\t\t(Html.ProductUrl(product) , 3635), false) ); WriteLiteral(">"); Write(product.SKU); WriteLiteral("\n\t\t\t\t\t(Html.ProductUrl(product) , 3702), false) ); WriteLiteral(">"); Write(product.Name); WriteLiteral("\n"); foreach(var extraHeader in extraColumnHeaders) { var extraColumn = product.Attributes .Where(a => a.Category == extraHeader) .Select(a => (a.Value != null && a.Value is string ? a.Value.ToString() : "N/A")) .DefaultIfEmpty("N/A") .FirstOrDefault(); WriteLiteral("\t\t\t\t\t\t"); Write(extraColumn); WriteLiteral("\n"); } WriteLiteral("\t\t\t\t\t"); foreach(var br in priceBreaks) { WriteLiteral("\t\t\t\t\t"); Write(br.ToString("c")); WriteLiteral("\n"); } WriteLiteral("\t\t\t\t\t\n\t\t\t\t\tAdd\n\t\t\t\t\n"); } WriteLiteral("\t\t\t\n\t\t\n\t\n"); WriteLiteral("\t\n"); WriteLiteral("\t(mainCssClass , 4505), false) , Tuple.Create(Tuple.Create(" ", 4518), Tuple.Create("col-xs-12", 4519), true) ); WriteLiteral(">\t\n"); foreach(var product in products) { var showQuickShipColor = bool.Parse(product.FindAttribute("QuickShip") ?? "false"); var styleForQuickShip = "noQuickShip"; if (showQuickShipColor) { styleForQuickShip = "isQuickShipItem"; } var basePrice = product.DefaultPrice; WriteLiteral("\t\t\t(styleForQuickShip , 4841), false) , Tuple.Create(Tuple.Create(" ", 4859), Tuple.Create("category-product-row", 4860), true) , Tuple.Create(Tuple.Create(" ", 4880), Tuple.Create("col-xs-12", 4881), true) ); WriteLiteral(">\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t(Html.ProductUrl(product) , 5156), false) ); WriteLiteral(">"); Write(product.Name); WriteLiteral("

    \n\t\t\t\t\t\t(Html.ProductUrl(product) , 5270), false) ); WriteLiteral(">Part #: "); Write(product.SKU); WriteLiteral("

    \n"); foreach(var extraHeader in extraColumnHeaders) { var extraColumn = product.Attributes .Where(a => a.Category == extraHeader) .Select(a => (a.Value != null && a.Value is string ? a : null)) .DefaultIfEmpty(null) .FirstOrDefault(); if (extraColumn != null) { WriteLiteral("\t\t\t\t\t\t\t\t"); Write(extraColumn.Category); WriteLiteral(" : "); Write(extraColumn.Value.ToString()); WriteLiteral("

    \n"); } else { WriteLiteral("\t\t\t\t\t\t\t\t

    \n"); } } WriteLiteral("\t\t\t\t\t\tPrice: $"); Write(product.DefaultPrice.Amount); WriteLiteral("

    \n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tAdd\n\t\t\t\t\n\t\t\t\n"); } WriteLiteral("\t\n"); WriteLiteral("\n"); } else if(isIntermediatePage) { var breadcrumbs = new List(); var parent = category.Parent(); var children = category.CategoryChildren().Where(x => x != null && !bool.Parse(x.FindAttribute("IsHidden") ?? "false")); while (parent != null) { breadcrumbs.Add(parent); parent = parent.Parent(); } breadcrumbs.Reverse(); WriteLiteral(" \n

  • (ResolveUrl("~/index.htm") , 8657), false) ); WriteLiteral(">Home
  • \n"); foreach(var breadCategory in breadcrumbs) { WriteLiteral(" \t
  • (breadCategory.Name.SanitizeFileName() , 8772), false) , Tuple.Create(Tuple.Create("", 8810), Tuple.Create("/", 8810), true) , Tuple.Create(Tuple.Create("", 8811), Tuple.Create(breadCategory.Id , 8811), false) ); WriteLiteral(">"); Write(breadCategory.Name); WriteLiteral("
  • \n"); } WriteLiteral(" \n"); WriteLiteral("\t

    "); Write(category.Name); WriteLiteral("

    \n"); WriteLiteral("\t\n"); WriteLiteral("\t\t"); Write(Raw(category.ShortDescription)); WriteLiteral("\n\t\n"); foreach(var childCategory in children.OrderBy(x => double.Parse(x.FindAttribute("DisplayOrder") ?? "10000"))) { WriteLiteral("\t\t\n\t\t \n\t\t (Html.CategoryUrl(childCategory) , 9157), false) ); WriteLiteral(">\n"); WriteLiteral("\t\t \t"); Write(Html.CategoryImage(childCategory,new { @class = "img-rounded media-object",@width = "230", @height = "230", @style="height:230px;width:230px;"})); WriteLiteral("\t\t \n\t\t \n\t\t \n\t\t \n\t\t (Html.CategoryUrl(childCategory) , 9445), false) ); WriteLiteral(">"); Write(childCategory.Name); WriteLiteral("\n"); WriteLiteral("\t\t "); Write(Raw(childCategory.ShortDescription)); WriteLiteral("\n\t\t\t(Html.CategoryUrl(childCategory) , 9563), false) ); WriteLiteral(" class=\"btn btn-primary\""); WriteLiteral(">Buy Now\n\t\t \n\t\t\t\n"); } } else if (needsQuote) { var breadcrumbs = new List(); var parent = category.Parent(); while (parent != null) { breadcrumbs.Add(parent); parent = parent.Parent(); } breadcrumbs.Reverse(); WriteLiteral(" \n
  • (ResolveUrl("~/index.htm") , 9968), false) ); WriteLiteral(">Home
  • \n"); foreach(var breadCategory in breadcrumbs) { WriteLiteral(" \t
  • (breadCategory.Name.SanitizeFileName() , 10083), false) , Tuple.Create(Tuple.Create("", 10121), Tuple.Create("/", 10121), true) , Tuple.Create(Tuple.Create("", 10122), Tuple.Create(breadCategory.Id , 10122), false) ); WriteLiteral(">"); Write(breadCategory.Name); WriteLiteral("
  • \n"); } WriteLiteral(" \n"); WriteLiteral("\t\n\t\t

    "); Write(category.Name); WriteLiteral("

    \n\t\t\n"); WriteLiteral("\t\t\t"); Write(Raw(category.Description)); WriteLiteral("\n\t\t\n\t\n"); WriteLiteral("\t\n\t\t\n

    Request Information

    \n\n\nFirst Name*: \n\nLast Name:* \n\nCompany: \n\nAddress:* \n\nCity:* \n\nState:*