Error compiling template "Designs/LV/_parsed/include.parsed.cshtml"
Line 50: } expected
Line 67: Method must have a return type
Line 67: Type expected
Line 71: Type or namespace definition, or end-of-file expected

1 @using System.Net 2 @using System.Xml.Linq 3 @using System.Xml 4 @using System.Linq 5 6 7 8 9 <!DOCTYPE html> 10 <html> 11 <head> 12 <title>@GetValue("Title")</title> 13 @GetValue("MetaTags") 14 @GetValue("CopyRightNotice") 15 16 @GetValue("Stylesheets") 17 @GetValue("Javascripts") 18 </head> 19 <body> 20 21 22 @{ 23 24 public bool checkWebsite(string URL) { 25 try { 26 WebClient wc = new WebClient(); 27 string HTMLSource = wc.DownloadString(URL); 28 return true; 29 } 30 catch (Exception) { 31 return false; 32 } 33 } 34 35 } 36 </body> 37 </html>