Exception in template (Designs/bleau-solutionset/_parsed/subpage.parsed.cshtml): System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at CompiledRazorTemplates.Dynamic.bbeaeedabccebae.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@using Dynamicweb; @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using System.Web; @{ var jsversion = "0" + @GetString("Item.Area.Jsversion"); } <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html xmlns:ng="http://angularjs.org" id='ng-app' ng-app="nemlejeApp" class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>@GetValue("Title")</title> @GetValue("MetaTags") @GetValue("CopyRightNotice") <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/css/bootstrap3/bootstrap.min.css?v=@jsversion"> @*<link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/vendor/fancybox/jquery.fancybox-1.3.4.min.css">*@ @*<link href="/Files/Templates/Designs/bleau-solutionset/assets/vendor/fancyboxV2/jquery.fancybox.css" rel="stylesheet">*@ <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/../../BleauDocumentArchive/css/style-archive.min.css?v=@jsversion"> <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/../../BleauDocumentArchive/css/BleauPrint_IconFont/styles.min.css?v=@jsversion"> <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/less/main/style.min.css?v=@jsversion"> <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/less/main/new-styles.min.css?v=@jsversion"> <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/less/main/new-style.min.css?v=@jsversion"> @* custom style adaptation *@ <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/less/custom/custom.min.css?v=@jsversion"> <link rel="shortcut icon" href="/Files/Templates/Designs/bleau-solutionset/img/favicon.ico?v=@jsversion"> <link rel="apple-touch-ico" n="" href="/Admin/Public/GetImage.ashx?Image=/Files/Templates/Designs/bleau-solutionset/assets/images/apple-touch-icon.png&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png"> <link href="/Files/Templates/Designs/bleau-solutionset/assets/vendor/BxSlider/jquery.bxslider.min.css?v=@jsversion" rel="stylesheet"> <!--@Snippet(JavaScriptHead)--> <style> [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none !important; } </style> <!-- Facebook Pixel Code --> <script> !function (f, b, e, v, n, t, s) { if (f.fbq) return; n = f.fbq = function () { n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments) }; if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = '2.0'; n.queue = []; t = b.createElement(e); t.async = !0; t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s) }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '174948826181505'); fbq('track', 'PageView'); </script> <noscript> <img height="1" width="1" style="display: none" src="https://www.facebook.com/tr?id=174948826181505&ev=PageView&noscript=1"> </noscript> <!-- End Facebook Pixel Code --> @*@if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics_ID"))) { <script> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', '@GetValue("Item.Area.Google_Analytics_ID")', 'auto'); ga('send', 'pageview'); </script> } *@ <!-- Global site tag (gtag.js) - Google Analytics --> <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-12406456-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-12406456-1'); </script> @GetValue("Stylesheets") @GetValue("Javascripts") </head> @{ var getPageSearchID = GetString("DwPageID"); var hideClass = ""; var isTrueSearchPage = false; if (getPageSearchID == "34") { hideClass = "hide-search-footer"; isTrueSearchPage = true; } } @{ var pagename = @GetString("DwPageName"); var newclass = ""; var isTrue = false; } @if (pagename == "Søg bolig") { newclass = "search-page"; isTrue = true; } @if (pagename == "Min side") { newclass = "mypage"; isTrue = true; } <body ng-controller="SearchCtrl" class="@newclass"> <div class="loader">&nbsp;</div> @{ var logoimg = @GetString("Item.Area.Logo_Image"); var logoimgMobile = @GetString("Item.Area.Logo_Image_Mobile"); var Brugerid = GetString("Item.Area.OpretBrugerPageID"); var glemid = GetString("Item.Area.GlemtAdgangskodePageID"); var loginid = GetString("Item.Area.MinSideID"); var pageid = @GetGlobalValue("Global:Page.ID"); var searchresult = GetString("Item.Area.SearchResultPageID"); var footercontactid = @GetString("Item.Area.FooterContactID"); var footercontactidINT = Int32.Parse(footercontactid); var footersocialid = @GetString("Item.Area.FooterSocialID"); var footersocialidINT = Int32.Parse(footersocialid); var footercopyrightimage = @GetString("Item.Area.FooterCopyrightImage"); var freeapartments = @GetString("Item.Area.VisAlleLedigeBoliger"); var isApOrDepPage = false; //// link to id of pages ! var kontaktOs = GetString("Item.Area.KontaktOs"); var sporsgmalOgSvar = GetString("Item.Area.SporgsmalOgSvar"); var aabningstider = GetString("Item.Area.Aabningstider"); var aabningstiderINT = Int32.Parse(aabningstider); var newsletterFooter = GetString("Item.Area.Newsletter"); var newsletterFooterINT = Int32.Parse(newsletterFooter); ///// front page main text & link var h2Title = GetString("Item.Area.BigImageText"); var pSubtext = GetString("Item.Area.BigImageTextLine2"); var aLinkName = GetString("Item.Area.FrontPageImageLinkText"); var aLinkURL = GetString("Item.Area.FrontPageImageLink"); } <div class="body-wrapper" scroller=""> @*the element "<div class="fb-line-menu"></div>" is loaded using jquery to avoid this ghost effect, the file in down next to the scripts*@ <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="navbar-header col-xs-12"> <div class="navbar-row clearfix"> <div class="col-md-6 col-sm-5 col-xs-6 custom-nav toggle-container"> <ul class="custom-nav-items"> <li><a href="#" id="menu-icon" title="Menu"><span class="btn-toggle menu-toggle-btn" data-image="/files/templates/designs/bleau-solutionset/img/nav-btn-sprite.png"></span><span class="hidden-sm hidden-xs menu-text">Menu</span></a> </li><li class="logo-holder"><a href="/" class="logo" data-image="@logoimg.ToString()" data-image-mobile="@logoimg.ToString()" title='@Translate("LogoTitle", "Faellesbo")'></a> </li></ul> </div> <div id="expand-left"> @GetValue("DwNavigation(expandmenu)") <div class="info-navigation" style="display:none;"> <div class="desc-container"> @GetValue("Item.Area.NavigationInfo") </div> <div class="phone-container"> <span class="phone-icon"></span><span>@GetValue("Item.Area.NavigationPhone")</span> </div> <div class="social-container"> <ul> @foreach (var item in GetLoop("Item.Area.NavigationShareIcons")) { <li><a title='@item.GetValue("Item.Area.NavigationShareIcons.Link")' href='@item.GetValue("Item.Area.NavigationShareIcons.Link")'><span class='socicon circle @item.GetValue("Item.Area.NavigationShareIcons.Icon.Value")'></span></a></li> } </ul> </div> </div> </div> <div class="col-md-6 col-sm-7 col-xs-6 custom-nav custom-menu pull-right"> <ul class="custom-nav-items pull-right"> <li class="hidden-xs hidden-sm"> <a href="/Default.aspx?ID=@kontaktOs" class="kontakt-os">Kontakt os</a> </li> <li class="hidden-xs hidden-sm"> <a href="/Default.aspx?ID=@sporsgmalOgSvar" class="sporgsmal-og-svar">Spørgsmål og svar</a> </li> <li class="search "> <form class="search-form" id="search" title="Søg" method="get" action="/Default.aspx"> <input type="hidden" name="ID" value="@searchresult"> <button type="button" class="custom-icon search" data-image="/files/templates/designs/bleau-solutionset/img/icon-search.png" data-image-hover="/files/templates/designs/bleau-solutionset/img/icon-search.png"></button> <input name="q" type="search" class="input-field" data-text="Søg" data-text-mobile="Søg" value=""> </form> </li><li class=""> <a href="https://minside.faellesbo.dk" target="_blank" class="kontakt-os">Min Side</a> </li> @* <li class="login-box"> <div id="login-btn"> @if (GetGlobalValue("Global:Extranet.UserID") == "0") { <span class="custom-icon lock" data-image="/files/templates/designs/bleau-solutionset/img/icon-lock.png"></span> <span class="log">@Translate("LogPa", "Log på")</span> } </div> @if (GetGlobalValue("Global:Extranet.UserID") != "0") { <div class="know-user"> <span class="custom-icon unlock" data-image="/files/templates/designs/bleau-solutionset/img/unlock-icon.png"></span> <a href="/Admin/Public/ExtranetLogoff.aspx" title='@Translate("LogAf", "Log af")' class="logoff"><span>@Translate("LogAf", "Log af")</span></a> <span id="user-info"> <span class="hidden-xs login-username" id="">@GetGlobalValue("Global:Extranet.Name")</span> <span class="hidden-xs user-img" title='@GetGlobalValue("Global:Extranet.Name")' style="background-image: url('/files/templates/designs/bleau-solutionset/img/avatar.svg');" id="userAvatar"></span> </span> </div> } </li>*@ </ul> <div class="login-wrapper"> <div class="login-links clearfix"> @if (GetGlobalValue("Global:Extranet.UserID") != "0") { <h4>Du er logged ind som '@GetGlobalValue("Global:Extranet.Name")'</h4> <a class="buttonSubmit btn after-login" style="float:left" title='@Translate("MinSideText", "Min side")' href="/Selvbetjening/Min-side.aspx">Min side</a> <a class="buttonSubmit btn after-login" title='@Translate("LogAf", "Log af")' href="/Admin/Public/ExtranetLogoff.aspx">Log af</a> <div class="clearfix"></div> } else { var formAction = ""; <h3>Log ind</h3> <p>Du kan logge ind med dit brugernavn som enten er din mail eller dit internetnr..</p> { var currUrl = HttpContext.Current.Request.Url; if (@GetString("DwPageID") == "78" || @GetString("DwPageID") == "79") { formAction = HttpContext.Current.Request.RawUrl; } else { formAction = "/Default.aspx?ID=" + loginid; } } @:<form class="login-form" name="ExtUserForm" id="ExtUserForm" method="POST" action="@formAction" onsubmit="return checkform();"> <h3>Brugernavn</h3> @:<input type="text" name="Username" class="form-control input username" id="Username" value='@GetValue("DWExtranetName")'> <h3>Adgangskode</h3> <input type="password" name="Password" class="form-control input" id="Password" value='@GetValue("DWExtranetPassword")'> <input type="hidden" name="externalID" value="" id="externalID"> <input type="hidden" name="externaltype" value="" id="externaltype"> <input type="hidden" value="EGDI_Login" name="m2"> <input type="hidden" value="256" name="groupnumber"> <div style="display:none" id="firstexlogin" onclick="$(this).fadeOut()"><p>Du er logget ind med <span id="exlogintype"></span> men vi skal have tilknyttet dig til dit login til BOLIGSELSKABSNAVN, Skriv din enail eller internetnummer og log ind. Det skal kun gøres første gang.</p></div> <input type="submit" value='@Translate("Logind", "Log ind")'> <div class="clearfix"></div> @:<div class="bottom-links"> <a href="/Default.aspx?ID=@glemid" title='@Translate("GlemtPassword", "Glemt password")' id="ForgotPassword">&raquo; Tilsend adgangskode?</a> @:<a href="/Default.aspx?ID=@Brugerid" title='@Translate("OpretDigSomMedlem", "Opret dig som medlem")' id="Register">&raquo; Opret dig som boligsøgende.</a> @:</div> @:</form> @: <input type="button" value="Log ind med facebook" class="exLoginBtn facebookLogin" onclick="doFBLogin()"> @: <input type="button" onclick="doGoogleLogin()" id="signinButton" class="exLoginBtn googleLogin" value="Sign in with Google"> } </div> </div> </div> </div> </div> </nav> <main id="main" role="main" class="clearfix"> @{ var getPageSearch = GetString("DwPageID"); } <div class="container sub-page"> @if(getPageSearch != "34") { <ol class="faellesbo-breadcrumbs breadcrumb"> @GetValue("DwNavigation(faellesbobreadcrumbsmenu)") </ol> } <div class="col-xs-12 col-sm-8 main-content"> @{ if(GetString("DwPageID") != "34") // it was before 18 { <h3 class="title ">@GetValue("Title")</h3> } } </div> <div class="col-xs-12 col-sm-8 main-content" id="MainContent">@GetValue("DwContent(MainContent)")</div> <div class="col-xs-12 col-sm-4 right-sidebar" id="RightSidebar">@GetValue("DwContent(RightSidebar)")</div> </div> <div id="full-width-container">@GetValue("DwContent(fullwidthcontainer)")</div> </main> <footer id="faellesbo-footer" class="@hideClass"> <div class="container-fluid"> <div class="row"> <div class="col-md-6 col-sm-6 col-xs-12 faellesbo-footer-boxes"> <div class="row"> <div class="col-sm-12 col-xs-12 first-box-links"> <h3>Quicklinks</h3> <span class="line-footer-gray"> <img class="line-footer-gray-img" src="/Files/Templates/Designs/bleau-solutionset/img/footer-line-small.png" alt="footer faellesbo"> </span> @GetValue("DwNavigation(quicklinks)") </div> </div> </div> @*to enable this, uncomment this and change the class col-md-6 to col-md-3 in the first box, otherwise it will jump the boxes in the footer *@ @*<div class="col-md-3 col-sm-6 col-xs-12 faellesbo-footer-boxes"> <div class="row"> <div class="col-sm-12 col-xs-12 second-box-newsletter"> @RenderParagraphContent(newsletterFooterINT) </div> </div> </div>*@ <div class="col-md-3 col-sm-6 col-xs-12 faellesbo-footer-boxes"> <div class="row"> <!-- Footer contacts --> <div class="col-sm-12 col-xs-12 third-box-contact"> @RenderParagraphContent(footercontactidINT) </div> <!-- Social profiles --> <div class="col-sm-12 col-xs-12 third-box-social"> @RenderParagraphContent(footersocialidINT) </div> </div> </div> <div class="col-md-3 col-sm-6 col-xs-12 faellesbo-footer-boxes"> <div class="row"> <div class="col-sm-12 col-xs-12 four-box-aabningstider"> @RenderParagraphContent(aabningstiderINT) </div> </div> </div> </div> </div> </footer> </div> <!-- Modal --------- from \NemlejeV2\js\signup-directive ---------------------------- --> <div class="modal fade" id="afdelingsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content modal-content-custom-vagtorning"> <div class="modal-header modal-header-custom-vagtorning"> <button type="button" class="close close-custom-vagtorning" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> </div> <div id="aeldreboligMesaageModaltext" class="modal-body"> </div> <div class="modal-footer modal-footer-custom-vagtorning"> </div> </div> </div> </div> <script> var Dynamicweb = (typeof Dynamicweb==='undefined') ? {} : Dynamicweb; Dynamicweb.GlobalTags = @(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Pageview.GlobalTags.ToDictionary(tag => tag.Name, tag => tag.Value))); </script> <!--@Snippet(JavaScriptBottom)--> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> @*<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>*@ <script src="https://maps.googleapis.com/maps/api/js?amp;v=3.exp&amp;libraries=places&key=AIzaSyDB9lR9CgyDgknq0z9b1LzqcXURxgurT_8"></script> <script>window.jQuery || document.write('<script src="assets/vendor/jquery-1.10.1.min.js"><\/script>')</script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.22/angular-sanitize.min.js"></script> @*<script type="text/javascript" src="https://code.angularjs.org/1.2.14/angular-resource.min.js"></script>*@ <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/underscore/underscore-min.js?v=@jsversion"></script> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.22/angular-cookies.js?v=@jsversion"></script> <script src="/Files/Templates/Designs/bleau-solutionset/js/bootstrap3/bootstrap.min.js?v=@jsversion"></script> <script src="/Files/templates/NemlejeV2/js/app.js?v=@jsversion"></script> <script src="/Files/templates/NemlejeV2/js/controllers.js?v=@jsversion"></script> <script src="/Files/templates/NemlejeV2/js/usercontroller.js?v=@jsversion"></script> <script src="/Files/templates/NemlejeV2/js/createusercontroller.js?v=@jsversion"></script> <script type="text/javascript" src="/Files/Templates/NemLejeV2/js/poi-directive/poi-directive.js?v=@jsversion"></script> <script type="text/javascript" src="/Files/Templates/NemLejeV2/js/signup-directive/signup.js?v=@jsversion"></script> <script type="text/javascript" src="/Files/Templates/NemLejeV2/js/validation-directives/validation.js?v=@jsversion"></script> <script src="/Files/Templates/NemLejeV2/js/angular-spinner-master/spin.min.js?v=@jsversion"></script> <script src="/Files/Templates/BleauDocumentArchive/js/documentcontroller.js?v=@jsversion"></script> <script src="/Files/Templates/BleauDocumentArchive/js/scroll.js?v=@jsversion"></script> <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/js/bootstrap-tooltip.js"></script> <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/js/bootstrap-popover.js"></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/fancyboxV2/jquery.fancybox.min.js?v=@jsversion" defer=""></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/fancyboxV2/jquery.fancybox.pack.min.js?v=@jsversion" defer=""></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/CarouselSlider/jquery.scrollbox.min.js?v=@jsversion" defer=""></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/jquery.dotdotdot.min.js?v=@jsversion" defer=""></script> <script src="//cdn.jsdelivr.net/jquery.scrollto/2.1.2/jquery.scrollTo.min.js"></script> @*temp lib*@ <script src="/Files/Templates/Designs/bleau-solutionset/js/style.js?v=@jsversion" defer=""></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/BxSlider/jquery.bxslider.min.js?v=@jsversion" defer=""></script> <script src="/Files/templates/NemlejeV2/js/SearchGoogleMaps.js?js=@jsversion"></script> <script src="/Files/templates/NemlejeV2/js/custom-js/custom.js?v=@jsversion"></script> <script src="/Files/Templates/Designs/bleau-solutionset/js/jquery.sticky.js?v=@jsversion" defer=""></script> <script src="/Files/Templates/Designs/bleau-solutionset/js/fn.js?v=@jsversion" defer=""></script> <script src="/Files/Templates/Designs/bleau-solutionset/js/main.js?v=@jsversion" defer=""></script> <script src="/Files/Templates/Designs/bleau-solutionset/js/test-style.js?v=@jsversion"></script> @*temp lib*@ <script type="text/javascript"> @* // do not delete this unless it's necesary // this is for the menu navigation *@ $(document).ready(function() { $( ".navbar" ).before('<div class="fb-line-menu"></div>'); }); </script> @*@if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics_ID"))) { <script> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', '@GetValue("Item.Area.Google_Analytics_ID")', 'auto'); ga('send', 'pageview'); </script> } *@ <!-- Global site tag (gtag.js) - Google Analytics --> <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-12406456-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-12406456-1'); </script> </body> </html>