Exception in template (Designs\perb\Paragraph\Brugtoversigt-json.cshtml): System.Net.WebException: The remote server returned an error: (401) Unauthorized.
   at System.Net.HttpWebRequest.GetResponse()
   at CompiledRazorTemplates.Dynamic.aaadecdbeacff.getListJson(String url)
   at CompiledRazorTemplates.Dynamic.aaadecdbeacff.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@using Newtonsoft.Json; @using Newtonsoft.Json.Linq; @using System.Net; @using System.IO; @using System.Web @functions{ public class Vehicle { public int Id { get; set; } public string Mileage { get; set; } public string Year { get; set; } public string Make { get; set; } public string Model { get; set; } public string Variant { get; set; } public string RetailPrice { get; set; } public string AdvertisedRetailPrice { get; set; } public string RegistrationDate { get; set; } public string Condition { get; set; } public string Color { get; set; } public string Upholstery { get; set; } public string UpholsteryColor { get; set; } public string Type { get; set; } public string Motor { get; set; } public string Propellant { get; set; } public string NumberOfDoors { get; set; } public string NewPrice { get; set; } public string NumberOfGears { get; set; } public string GearType { get; set; } public string MotorVolume { get; set; } public string Cylinders { get; set; } public string ValvesPerCylinder { get; set; } public string DriveWheels { get; set; } public string TrailerWeight { get; set; } public string GasTankMax { get; set; } public string KmPerLiter { get; set; } public string Acceleration0To100 { get; set; } public string TopSpeed { get; set; } public string EdbNumber { get; set; } public string Effect { get; set; } public string EffectInNm { get; set; } public string EffectInNmRpm { get; set; } public string Weight { get; set; } public string WeightTax { get; set; } public string Payload { get; set; } public string NumberOfAirbags { get; set; } public string TotalWeight { get; set; } public string BodyType { get; set; } public string Comment { get; set; } public List<object> EquipmentList { get; set; } public int PictureCount { get; set; } public List<string> Pictures { get; set; } public string ModifiedDate { get; set; } public string CreatedDate { get; set; } public string DealerName { get; set; } public string DealerId { get; set; } public string DealerAddressStreetLine1 { get; set; } public string DealerAddressStreetLine2 { get; set; } public string DealerAddressZipCode { get; set; } public string DealerAddressCity { get; set; } public string DealerDeliveryCost { get; set; } public string DealerDeliveryCostVans { get; set; } public string DealerLicensePlatePrice { get; set; } public string Length { get; set; } public string Width { get; set; } public string Height { get; set; } public string LitresUsedPer100Km { get; set; } } public class RootObject { public string ApiVersion { get; set; } public List<Vehicle> Vehicles { get; set; } } public string getListJson( string url) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET"; request.Accept = "application/json"; WebResponse response = request.GetResponse(); Stream stream = response.GetResponseStream(); StreamReader reader = new StreamReader(stream); string content = reader.ReadToEnd(); reader.Close(); response.Close(); return content; } public JToken convertToObject( string jsonString) { JToken token = JObject.Parse(jsonString); return token; } } @{ int i = 0; string JsonList = getListJson( "https://services.web.bilinfo.dk/api/vehicle/?user=per-b-christensen&password=j3T069GVrW&format=json" ); int carID = 0; if ( System.Web.HttpContext.Current.Request["car"] != null) { carID = Int32.TryParse( System.Web.HttpContext.Current.Request["car"], out carID ) ? carID : 0; } string translationString = "{\"ABSBrakes\":\"ABS\",\"Airbag\":\"Airbag\",\"Airbags10\":\"10 airbags\",\"Airbags2\":\"db. airbag\",\"Airbags4\":\"4 airbags\",\"Airbags6\":\"6 airbags\",\"Airbags7\":\"7 airbags\",\"Airbags8\":\"8 airbags\",\"Airbags9\":\"9 airbags\",\"Aircondition\":\"A/C\",\"AirconditionGlovebox\":\"Køl i handskerum\",\"Alarm\":\"Alarm\",\"Alloy15\":\"15'' Alufælge\",\"Alloy16\":\"16'' Alufælge\",\"Alloy17\":\"17'' Alufælge\",\"Alloy18\":\"18'' Alufælge\",\"Alloy19\":\"19'' Alufælge\",\"Alloy20\":\"20'' Alufælge\",\"Alloy21\":\"21'' Alufælge\",\"Alloy22\":\"22'' Alufælge\",\"AlloyRims\":\"Alu.\",\"AntiSpin\":\"Antispin\",\"ArmRest\":\"Armlæn\",\"AutomaticClimateControl\":\"Fuldaut. klima \",\"AutomaticGear\":\"Aut.\",\"AutomaticGeartronic\":\"Aut./tiptronic\",\"Bluetooth\":\"Bluetooth\",\"CDRadio\":\"CD/Radio\",\"CentralLocking\":\"C. lås\",\"CruiseControl\":\"Fartpilot\",\"CupHolder\":\"Kopholder\",\"DualZoneClimateControl\":\"2 zone klima\",\"ESP\":\"ESP\",\"ExternalThermometer\":\"Udv. Temp. måler\",\"FabricInterior\":\"Original interiør\",\"FogLamps\":\"Tågelygter\",\"Gear6\":\"6 g\",\"GearShiftStearingWheel\":\"Ratgearskifte\",\"GlassRoof\":\"Glastag\",\"HandFreeForMobilePhone\":\"Håndfrit til mobil\",\"HeatedFrontWindow\":\"Varme i forrude\",\"HeightAdjustableFrontSeat\":\"Højdejust. Forsæde\",\"Immobilizer\":\"Startspærre\",\"InfoCenter\":\"Infocenter\",\"Isofix\":\"Isofix\",\"LeatherAlcantara\":\"Dellæder\",\"LeatherInterior\":\"Læderindtræk\",\"LeatherSteeringWheel\":\"Læderrat\",\"LightWasher\":\"Lygtevasker\",\"LoweredSuspension\":\"Sænket\",\"MotorCabinHeater\":\"Motorkabinevarmer\",\"MultiFunctionalSteeringWheel\":\"Multifunktionsrat\",\"Navigation\":\"Navigation\",\"NewMOT\":\"Nysynet\",\"NewMOT2\":\"Lev. nysynet\",\"NonSmoker\":\"Ikke ryger\",\"OneOwner\":\"1 ejer\",\"PaintedFenders\":\"Indfarvede kofangere\",\"ParkingSensor\":\"Parkeringssensor\",\"PickUp\":\"Afhentning\",\"PoweredDriverSeat\":\"El indst. førersæde\",\"PoweredFrontSeats\":\"El indst. forsæder\",\"PoweredMirrors\":\"El-spejle\",\"PoweredMirrorsHeated\":\"El-spejle m/varme\",\"PoweredSunRoof\":\"El-soltag\",\"PoweredWindows\":\"El-ruder\",\"PowerWindows4\":\"4 x el-ruder\",\"RadioWithCDChanger\":\"Radio m. CD skift\",\"RainSensor\":\"Regnsensor\",\"RearSpoiler\":\"Hækspoiler\",\"RearViewAutoDimming\":\"Auto. nedbl. bakspejl\",\"RemoteCentralLocking\":\"Fjernb. c.lås\",\"RemovableTowbar\":\"Aftag. træk\",\"RoofRails\":\"Tagræling\",\"SeatHeater\":\"Sædevarme\",\"ServiceOK\":\"Service OK\",\"Servo\":\"Servo \",\"Skirts\":\"Skørter\",\"SplitBackSeat\":\"Splitbagsæde\",\"Spoiler\":\"Spoiler\",\"SunRoof\":\"Soltag\",\"TaintedWindows\":\"Tonede ruder\",\"TaintedWindowsRear\":\"Tonede ruder bag\",\"Towbar\":\"Træk\",\"TripComputer\":\"Kørecomputer\",\"TrunkCover\":\"Bagagerumsdækken\",\"VelourSeats\":\"Veloursæder\",\"WhiteTurningSignal\":\"Hvide blink\",\"WinterWheels\":\"Vinterhjul\",\"WoodenInterior\":\"Træinteriør\",\"XenonLight\":\"Xenonlys\"}"; var translations = JObject.Parse(translationString); } @if (carID != 0) { var json = getListJson( "https://services.web.bilinfo.dk/api/vehicle/?user=per-b-christensen&password=j3T069GVrW&format=json" ); // var token = convertToObject(json); RootObject carList = Newtonsoft.Json.JsonConvert.DeserializeObject<RootObject>(json); var currentCar = carList.Vehicles.FirstOrDefault( x => x.Id.Equals( carID ) ); var pageView = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.GetPageview(); string fullUrl = pageView.GlobalTags.GetTagByName("Global:Request.PathAndQuery").Value.Substring(1); string pageUrl = pageView.GlobalTags.GetTagByName("Global:Pageview.Url.Raw").Value; if( currentCar != null ) { <div class="brugtbil-side brugtbil-visning"> @if (HttpContext.Current.Request["testdrive"] == "true" ){ <section class="bar-blue text-center"> <p>Tak for din prøveturs bestilling, vi kontakter dig hurtigst muligt.</p> </section> } @if (HttpContext.Current.Request["pris"] == "true" ){ <section class="bar-blue text-center"> <p>Dit bud er modtaget, vi kontakter dig hurtigst muligt. - <a href='/Default.aspx?ID=@GetString("ParagraphPageID")'>Tilbage til listen.</a></p> </section> } @if (currentCar.PictureCount > 0) { int slideCount = 0; <div id="car-slider" data-ride="carousel" class="carousel slide" > <div class="container"> <div class="row"> <div id="slide-wrapper" class="carousel-inner" title="Slideshow"> @foreach(var slide in currentCar.Pictures) { slideCount++; <div class="item @if(slideCount==1){<text>active</text>}"> <div class="container"> <img class="img-responsive" src="@(slide)?width=940&height=705" /> </div> </div> } </div> <a class="left carousel-control" href="#car-slider" data-slide="prev"> <i class="fa fa-chevron-left"></i> </a> <a class="right carousel-control" href="#car-slider" data-slide="next"> <i class="fa fa-chevron-right"></i> </a> </div> </div> </div> } @if (currentCar.PictureCount > 0) { int slideCount = 0; <div class="img-list container clearfix"> <br> <div class=""> @foreach(var slide in currentCar.Pictures) { <div class="col-xs-1"> <a href="#" data-target="#car-slider" data-slide-to="@slideCount" class="row" style="display:block;"> <img class="img-responsive" src="@slide?width=80&height=80&mode=crop"/> </a> </div> slideCount++; } </div> </div> } <section class="container"> <div class="row"> <div class="col-xs-12 col-sm-8 col-md-8"> <h1>@currentCar.Make @currentCar.Model @currentCar.Variant</h1> </div> <div class="col-xs-12 col-sm-4 col-md-3 col-md-push-1"> @if(Convert.ToDouble(currentCar.AdvertisedRetailPrice) > 0) { <h1 class="price" style="font-weight:500;color:#000;">Pris: <b>@Convert.ToDouble(currentCar.AdvertisedRetailPrice).ToString("#,##0") KR</b></h1> } </div> </div> <div class="row"> <div class="col-xs-12 col-md-8"> <div class="infobox"><b>Brændstof:</b> @currentCar.Propellant&nbsp;&nbsp;&nbsp;&nbsp;<b>HK:</b> @currentCar.Effect&nbsp;&nbsp;&nbsp;&nbsp;<b>Type:</b> @currentCar.Type</div> @if(!String.IsNullOrEmpty(currentCar.EdbNumber)) { <p><b>Vognnr. @currentCar.EdbNumber</b></p> } <p>@currentCar.Comment</p> </div> <div class="col-xs-12 col-md-3 col-md-push-1"> <a class="btn btn-lg btn-primary" href="#klikenpris">Klik en pris</a> <a class="btn btn-lg btn-primary" href="#book">Book en gratis prøvetur</a> </div> </div> </section> <section style="margin-top: 2em; background-color: #222a73;"> <div class="container"> <a href="https://www.nordeafinans.dk/privat/Bil/Drive7.html" target="_blank"> <img class="img-responsive" src="/Files/Templates/Designs/perb/img/drive_7.jpg" /> </a> </div> </section> @* <section class="bar-blue text-center"> <p><i class="fa fa-star" aria-hidden="true"></i>&nbsp;&nbsp;&nbsp;Få 7 Års GARANTIEN! <span>Læs mere om det <a href="http://www.nordeafinans.dk/privat/7-%C3%A5rs+garantien/1732022.html" target="_blank">her</a></span>&nbsp;&nbsp;&nbsp;<i class="fa fa-star" aria-hidden="true"></i></p> </section> *@ <section class="specs"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1"> <h2 class="text-center">Specifikationer</h2> <table class="table table-striped"> <tr> <td><b>Pris</b></td> <td class="text-right"><b>@Convert.ToDouble(currentCar.RetailPrice).ToString("#,##0") kr.</b></td> </tr> <tr> <td><b>Årgang</b></td> <td class="text-right"><b>@currentCar.Year</b></td> </tr> <tr> <td><b>Motorstørrelse</b></td> <td class="text-right"><b>@currentCar.Motor</b></td> </tr> <tr> <td><b>Brændstof</b></td> <td class="text-right"><b>@currentCar.Propellant</b></td> </tr> @if (!String.IsNullOrEmpty(currentCar.Mileage)) { <tr> <td><b>Kilometer</b></td> <td class="text-right"><b>@Convert.ToDouble(currentCar.Mileage).ToString("#,##0")</b></td> </tr> } <tr> <td><b>KM/Liter</b></td> <td class="text-right"><b>@currentCar.KmPerLiter</b></td> </tr> @if (!String.IsNullOrEmpty(currentCar.WeightTax)) { if( !(currentCar.BodyType.ToString().IndexOf( "van", StringComparison.OrdinalIgnoreCase) >= 0)) { <tr> <td><b>Grøn Afgift</b></td> <td class="text-right"><b>@currentCar.WeightTax kr./halvårligt</b></td> </tr> } else { <tr> <td><b>Grøn Afgift</b></td> <td class="text-right"><b>@currentCar.WeightTax kr./helårligt</b></td> </tr> } } <tr> <td><b>Farve</b></td> <td class="text-right"><b>@currentCar.Color</b></td> </tr> <tr> <td><b>Type</b></td> <td class="text-right"><b>@currentCar.Type</b></td> </tr> </table> </div> <div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1"> <h2 class="text-center">Udstyr</h2> <div class="equipment table-wrapper"> <table class="table table-striped"> @foreach(var equipment in currentCar.EquipmentList) { <tr> <td>@translations[equipment]</td> </tr> } </table> </div> <span class="equipment-table-expand">Se alt udstyr</span> </div> </div> </div> </section> <section class="laan"> <div class="container"> <div class="row"> <div class="col-xs-6 col-md-4 text-center"> <img class="img-responsive pull-right" src="/Files/Templates/Designs/perb/img/brugtbil-money.png" /> </div> <div class="col-xs-6 col-md-4 col-md-push-4 text-center"> <img class="img-responsive pull-right" src="/Files/Templates/Designs/perb/img/brugtbil-carkeys.png" /> </div> <div class="col-xs-12 col-md-4 col-md-pull-4 text-center"> <h2>Lån til din bil</h2> <p>Vi tilbyder flere former for finansering</p> <a href="/Default.aspx?Id=152" target="_blank" class="btn btn-primary">Kontakt os</a> </div> </div> </div> </section> <section class="ctas"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-4 text-center"> <a href="#klikenpris"> <img src="/Files/Templates/Designs/perb/img/brugtbil-tag.png" class="img-responsive" /> <h2>Klik en pris</h2> </a> </div> <div class="col-xs-12 col-sm-4 text-center"> <a href="http://www.perb.dk/Kontakt/Salg/E-mail" > <img src="/Files/Templates/Designs/perb/img/brugtbil-phone.png" class="img-responsive" /> <h2>Kontakt os</h2> </a> </div> <div class="col-xs-12 col-sm-4 text-center"> <a href="#book"> <img src="/Files/Templates/Designs/perb/img/brugtbil-key.png" class="img-responsive" /> <h2>Book prøvetur</h2> </a> </div> </div> </div> </section> </div> <!--@SnippetStart(mainHeader)--> <meta property="og:url" content="http://www.perb.dk/Brugte-biler?car=@carID" /> <meta property="og:type" content="product" /> <meta property="og:title" content="@currentCar.Make @currentCar.Model @currentCar.Variant" /> <meta property="og:description" content="@currentCar.Comment" /> if (currentCar.Pictures != null) { <meta property="og:image" content="@currentCar.Pictures[0]" /> } <meta property="product:price:amount" content="@currentCar.RetailPrice" /> <meta property="product:price:currency" content="DKK" /> <!--@SnippetEnd(mainHeader)--> <!--@SnippetStart(Scripts)--> <div class="modal fade" id="modal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <section class="klikenpris modal-content"> <form onsubmit="return FormCheck15();" action="https://www.perb.dk/Admin/Public/404.aspx" enctype="multipart/form-data" method="post" name="postform15" id="postform15" class="form-horizontal"> <input type="hidden" name="_sys_to_email" value="bot@dynamicweb.com"> <input type="hidden" name="FormCH1_h" value="bd10758ab90a27c26c79c26b5a5c82ac"> <input type="hidden" name="FormCH1_f" value="bfb322dabfe5ddeb71798d2058363cf4"> <input type="hidden" name="FormCH1_s" value="33d9b42bf7890884c11c7fb3ef5496b2"> <input type="hidden" name="FormCH1_i" value="bcc14b46e41226725fd9e36506283ac5"> <input type="hidden" name="Recipient" value="salg@perb.dk"> <input type="hidden" name="RecipientBCC" value=""> <input type="hidden" name="Subject" value="Klik en pris"> <input type="hidden" name="DWDateFormat" value="dd-mm-yyyy"> <input type="hidden" name="FormSaveData" value="1"> <input type="hidden" name="FormSaveDataDate" value=""> <input type="hidden" name="FormSaveDataEncoding" value=""> <input type="hidden" name="Charset" value="iso-8859-1"> <input type="hidden" name="FormUseSystemNames" value=""> <input type="hidden" name="FormSenderUseUserEmail" value="1"> <input type="hidden" name="sender" value="noreply@perb.dk"> <input type="hidden" name="FormID" value="15"> <input type="hidden" name="FormName" value="BrugtBilKlikEnPris"> <input type="hidden" name="FormHTML" value="1"> <input type="hidden" name="Redirect" value='@(fullUrl.Replace("http:/www.perb.dk/",""))&pris=true'> <input type="hidden" name="FormReceipt" value=""> <input type="hidden" name="FormReceiptField" value=""> <input type="hidden" name="FormReceiptShowForm" value=""> <input type="hidden" name="FormReceiptSubject" value=""> <input type="hidden" name="FormReceiptText" value=""> <input type="hidden" name="FormReceiptSender" value=""> <div class="modal-header text-center"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h1 class="modal-title ">Klik en pris</h1> <p>Jeg vil byde</p> <div class="row"> <div class="col-xs-12 col-sm-8 col-sm-push-2"> <input type="number" name="pris" value="" step="1000" max="999999" placeholder='@currentCar.RetailPrice' class="form-control" /> </div> </div> </div> <div class="modal-body"> <div class="form-group"> <label for="navn" class="col-sm-2 control-label">Vognnr</label> <div class="col-sm-8" style="line-height: 2.5em;">@currentCar.EdbNumber</div> </div> <div class="form-group"> <label for="navn" class="col-sm-2 control-label">Navn</label> <div class="col-sm-8"> <input type="text" name="navn" value="" class="form-control"> </div> </div> <div class="form-group"> <label for="navn" class="col-sm-2 control-label">Email</label> <div class="col-sm-8"> <input type="text" name="E-mail" value="" class="form-control"> </div> </div> <div class="form-group"> <label for="navn" class="col-sm-2 control-label">Telefon</label> <div class="col-sm-8"> <input type="text" name="telefon" value="" class="form-control"> </div> </div> <div class="form-group"> <div class="col-xs-12 col-sm-8 col-sm-push-2"> <input type="button" class="btn btn-block btn-lg btn-primary" onclick="FormCheck15();" name="sendpris" value="Send pris"> </div> </div> </div> <input type="hidden" name="vognnr" value="@currentCar.EdbNumber" > <input type="hidden" name="sorteringen" value="vognnr;;pris;;navn;;E-mail;;telefon;;"> <input type="hidden" name="vognnr_DWX" value="Vognnr"> <input type="hidden" name="pris_DWX" value="Pris"> <input type="hidden" name="navn_DWX" value="Navn"> <input type="hidden" name="email_DWX" value="Email"> <input type="hidden" name="telefon_DWX" value="Telefon"> <input type="hidden" name="sendpris_DWX" value="Send pris"> </form> </section> <section class="book modal-content"> <form onsubmit="return FormCheck14();" action="https://www.perb.dk/Admin/Public/404.aspx" enctype="multipart/form-data" method="post" name="postform14" id="postform14" style="margin:0px;"> <div class="modal-header text-center"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h1 class="modal-title ">Book en gratis prøvetur</h1> </div> <div class="modal-body"> <input type="hidden" name="_sys_to_email" value="bot@dynamicweb.com"> <input type="hidden" name="FormCH1_h" value="bd10758ab90a27c26c79c26b5a5c82ac"> <input type="hidden" name="FormCH1_f" value="420b43a92ee9d6f25601683b695420de"> <input type="hidden" name="FormCH1_s" value="33d9b42bf7890884c11c7fb3ef5496b2"> <input type="hidden" name="FormCH1_i" value="bcc14b46e41226725fd9e36506283ac5"> <input type="hidden" name="Recipient" value="salg@perb.dk"> <input type="hidden" name="RecipientBCC" value=""> <input type="hidden" name="Subject" value="Book en prøvetur"> <input type="hidden" name="DWDateFormat" value="dd-mm-yyyy"> <input type="hidden" name="FormSaveData" value="1"> <input type="hidden" name="FormSaveDataDate" value=""> <input type="hidden" name="FormSaveDataEncoding" value=""> <input type="hidden" name="Charset" value="iso-8859-1"> <input type="hidden" name="FormUseSystemNames" value=""> <input type="hidden" name="FormSenderUseUserEmail" value="1"> <input type="hidden" name="sender" value="noreply@perb.dk"> <input type="hidden" name="FormID" value="14"> <input type="hidden" name="FormName" value="BrugtBilTestKorsel"> <input type="hidden" name="FormHTML" value="1"> <input type="hidden" name="Redirect" value='@(fullUrl.Replace("http:/www.perb.dk/",""))&testdrive=true'> <input type="hidden" name="FormReceipt" value=""> <input type="hidden" name="FormReceiptField" value=""> <input type="hidden" name="FormReceiptShowForm" value=""> <input type="hidden" name="FormReceiptSubject" value=""> <input type="hidden" name="FormReceiptText" value=""> <input type="hidden" name="FormReceiptSender" value=""> <div class="row"> @if(currentCar.Pictures != null) { <div class="col-xs-4"> <img src="@currentCar.Pictures[0]?width=165" class="img-responsive" /> </div> <div class="col-xs-8"> <h2>@currentCar.Make @currentCar.Model</h2> <p>Vognnr. @currentCar.EdbNumber</p> </div> } else { <div class="col-xs-12 text-center"> <h2>@currentCar.Make @currentCar.Model</h2> <p>Vognnr. @currentCar.EdbNumber</p> </div> } </div> <input type="hidden" name="vognnr" value="@currentCar.EdbNumber"> <h2 class="text-center">Bookings formular</h2> <br/> <div class="form-horizontal"> <div class="form-group"> <label for="navn" class="col-sm-2 control-label">Navn</label> <div class="col-sm-8"> <input type="text" class="form-control" name="navn" id="navn"> </div> </div> <div class="form-group"> <label for="navn" class="col-sm-2 control-label">Tlf nr.</label> <div class="col-sm-8"> <input type="text" class="form-control" name="telefon" id="telefon" > </div> </div> <div class="form-group"> <label for="E-mail" class="col-sm-2 control-label">Mail</label> <div class="col-sm-8"> <input type="text" class="form-control" name="E-mail" id="E-mail"> </div> </div> <div class="form-group"> <label for="dato" class="col-sm-2 control-label">Dato</label> <div class="col-sm-8"> <input type="text" class="form-control" name="dato" id="dato" > </div> </div> <div class="form-group"> <label for="tid" class="col-sm-2 control-label">Tid</label> <div class="col-sm-8"> <input type="text" class="form-control" name="tid" id="tid"> </div> </div> </div> <div class="row"> <div class="col-xs-12 col-sm-8 col-sm-push-2"> <input type="button" onclick="FormCheck14();" name="bestil" class="btn btn-block btn-lg btn-primary" value="Bestil prøvetur"> </div> </div> <input type="hidden" name="sorteringen" value="vognnr;;navn;;telefon;;E-mail;;dato;;tid;;"> <input type="hidden" name="vognnr_DWX" value="Vognnr"> <input type="hidden" name="navn_DWX" value="Navn"> <input type="hidden" name="telefon_DWX" value="Telefon"> <input type="hidden" name="email_DWX" value="Email"> <input type="hidden" name="dato_DWX" value="Dato"> <input type="hidden" name="tid_DWX" value="Tid"> <input type="hidden" name="bestil_DWX" value="Bestil"> </div> </form> </section> <script type="text/javascript"> //<![CDATA[ function FormCheck14(){ var pForm = document.getElementById("postform14"); s=function(e){e.elements['FormCH1_h'].value='bd10758ab90a27c26c79c26b5a5c82ac';e.elements['_sys_to_email'].value='';e.setAttribute('action', '/Admin/Public/FormMail.aspx?mode=20');return true}; var anti = s(pForm); pForm.submit(); ga('send','event', 'brugtbil', 'booktur-submit', document.location.href); } //]]> </script> <script type="text/javascript"> //<![CDATA[ function FormCheck15(){ var pForm = document.getElementById("postform15"); s=function(e){e.elements['FormCH1_h'].value='bd10758ab90a27c26c79c26b5a5c82ac';e.elements['_sys_to_email'].value='';e.setAttribute('action', '/Admin/Public/FormMail.aspx?mode=20');return true}; var anti = s(pForm); pForm.submit(); ga('send','event', 'brugtbil', 'klikenpris-submit', document.location.href); } //]]> </script> </div> </div> <!--@SnippetEnd(Scripts)--> <script>console.log(@(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(currentCar)))</script> } else { <script>console.log("Bilen findes ikke.")</script> } } else { <div class="brugtbil-side container"> <div class="toggle-filters visible-xs">Vis filtre</div> <div class="row"> <div class='col-xs-12 col-sm-4'> <div class="brugtbil-oversigt-filter"> <h2>Find din bil</h2> <div class="filters"> <input type="text" class="form-control filter query" placeholder="Vognnr. / Mærke / Model" /> </div> </div> </div> <div class="col-xs-12 col-sm-8"> <div class=""> <h2>@GetString("ParagraphHeader")</h2> <div class="row"> <div class="col-xs-6 text-left"> <p><span class="car-count">0</span> matchende biler</p> </div> <div class="col-xs-6 text-right"> <p><b>SORTER:&nbsp;&nbsp;&nbsp;</b> <select name="car-sort" class="form-control" style="display:inline;width:auto;"> <option value="priceDSC">Pris faldende</option> <option value="priceASC">Pris stigende</option> <option value="mileageDSC">KM faldende</option> <option value="mileageASC">KM stigende</option> </select> </p> </div> </div> </div> <div class='brugtbil-oversigt row'> </div> </div> </div> </div> } <script type="text/javascript"> var feedCars = @JsonList; var feedTranstions = @translationString; </script> <!--@SnippetStart(Scripts)--> <script type="text/javascript" src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script> <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script type="text/javascript" src='/Files/Templates/Designs/perb/js/brugtbil-uden-leasing.js'></script> <!--@SnippetEnd(Scripts)--> @*<script>console.log(@(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Values)))</script> *@