Line 1: #pragma checksum "C:\inetpub\wwwroot\BrandLanding.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "C0E9A43AD9B95E275936C469D139102741B19CD0"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.WebPages.Html;
Line 24: using WebMatrix.Data;
Line 25: using WebMatrix.WebData;
Line 26: using Microsoft.Web.Helpers;
Line 27:
Line 28:
Line 29: public class _Page_BrandLanding_cshtml : System.Web.WebPages.WebPage {
Line 30:
Line 31: #line hidden
Line 32:
Line 33: public _Page_BrandLanding_cshtml() {
Line 34: }
Line 35:
Line 36: protected System.Web.HttpApplication ApplicationInstance {
Line 37: get {
Line 38: return ((System.Web.HttpApplication)(Context.ApplicationInstance));
Line 39: }
Line 40: }
Line 41:
Line 42: public override void Execute() {
Line 43:
Line 44: #line 1 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 45:
Line 46: iStar.ForLocalhostOnly();
Line 47:
Line 48: var UrlInfo = iStar.GetUrlInfo();
Line 49:
Line 50: var BrandLanding = CMS.GetBrand(UrlInfo["BrandCode"], "7FB9F40A-EB07-4107-A2518C833383A14F");
Line 51: var Brand = iStar.GetBrand(UrlInfo["BrandCode"]);
Line 52:
Line 53: if(BrandLanding != null) {
Line 54: PageData["Title"] = BrandLanding["PageTitle"] != null ? BrandLanding["PageTitle"] : PageData["Title"];
Line 55: PageData["MetaDescription"] = BrandLanding["MetaDescription"] != null ? BrandLanding["MetaDescription"] : PageData["MetaDescription"];
Line 56: PageData["MetaKeywords"] = BrandLanding["MetaKeywords"] != null ? BrandLanding["MetaKeywords"] : PageData["MetaKeywords"];
Line 57: }
Line 58:
Line 59: var CanonicalUrl = "http://" + PageData["Hostname"] + Brand["Url"];
Line 60:
Line 61:
Line 62: #line default
Line 63: #line hidden
Line 64: DefineSection("MetaTags", () => {
Line 65:
Line 66: WriteLiteral("\r\n <link");
Line 67:
Line 68: WriteAttribute("href", Tuple.Create(" href=\"", 774), Tuple.Create("\"", 794)
Line 69:
Line 70: #line 17 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 71: , Tuple.Create(Tuple.Create("", 781), Tuple.Create<System.Object, System.Int32>(CanonicalUrl
Line 72:
Line 73: #line default
Line 74: #line hidden
Line 75: , 781), false)
Line 76: );
Line 77:
Line 78: WriteLiteral(" rel=\"canonical\"");
Line 79:
Line 80: WriteLiteral(">\r\n ");
Line 81:
Line 82: });
Line 83:
Line 84:
Line 85: #line 18 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 86:
Line 87:
Line 88: Layout="/Shared/_Layout.cshtml";
Line 89:
Line 90:
Line 91: #line default
Line 92: #line hidden
Line 93: WriteLiteral("\r\n\r\n<div");
Line 94:
Line 95: WriteLiteral(" id=\"content\"");
Line 96:
Line 97: WriteLiteral(">\r\n");
Line 98:
Line 99:
Line 100: #line 24 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 101:
Line 102:
Line 103: #line default
Line 104: #line hidden
Line 105:
Line 106: #line 24 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 107: if(BrandLanding != null) {
Line 108: if(BrandLanding["Image"] != null) {
Line 109:
Line 110:
Line 111: #line default
Line 112: #line hidden
Line 113: WriteLiteral(" <img");
Line 114:
Line 115: WriteAttribute("src", Tuple.Create(" src=\"", 981), Tuple.Create("\"", 1009)
Line 116:
Line 117: #line 26 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 118: , Tuple.Create(Tuple.Create("", 987), Tuple.Create<System.Object, System.Int32>(BrandLanding["Image"]
Line 119:
Line 120: #line default
Line 121: #line hidden
Line 122: , 987), false)
Line 123: );
Line 124:
Line 125: WriteAttribute("alt", Tuple.Create(" alt=\"", 1010), Tuple.Create("\"", 1030)
Line 126:
Line 127: #line 26 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 128: , Tuple.Create(Tuple.Create("", 1016), Tuple.Create<System.Object, System.Int32>(Brand["Name"]
Line 129:
Line 130: #line default
Line 131: #line hidden
Line 132: , 1016), false)
Line 133: );
Line 134:
Line 135: WriteLiteral(" />\r\n");
Line 136:
Line 137:
Line 138: #line 27 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 139: }
Line 140: if(BrandLanding["Description"] != null) {
Line 141:
Line 142:
Line 143: #line default
Line 144: #line hidden
Line 145:
Line 146: #line 29 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 147: Write(Html.Raw(BrandLanding["Description"]));
Line 148:
Line 149:
Line 150: #line default
Line 151: #line hidden
Line 152:
Line 153: #line 29 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 154:
Line 155: }
Line 156: }
Line 157:
Line 158:
Line 159: #line default
Line 160: #line hidden
Line 161: WriteLiteral("\r\n");
Line 162:
Line 163: WriteLiteral(" ");
Line 164:
Line 165:
Line 166: #line 33 "C:\inetpub\wwwroot\BrandLanding.cshtml"
Line 167: Write(iStarHelper.iStarContent());
Line 168:
Line 169:
Line 170: #line default
Line 171: #line hidden
Line 172: WriteLiteral("\r\n</div>");
Line 173:
Line 174: }
Line 175: }
Line 176: }
Line 177:
|