Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 基本网站获取错误CS1002:;预期_Javascript_Html_Asp.net - Fatal编程技术网

Javascript 基本网站获取错误CS1002:;预期

Javascript 基本网站获取错误CS1002:;预期,javascript,html,asp.net,Javascript,Html,Asp.net,我正在尝试使用VisualStudio2015创建一个带有引导和HTML的网站,但到目前为止,我的代码没有运行,我收到一条错误消息 ] Iv'e也一直遵循本网站上的说明: 以下是我目前掌握的代码: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Time Entry</title> <meta charset="utf-8"

我正在尝试使用VisualStudio2015创建一个带有引导和HTML的网站,但到目前为止,我的代码没有运行,我收到一条错误消息

]

Iv'e也一直遵循本网站上的说明:

以下是我目前掌握的代码:

<html xmlns="http://www.w3.org/1999/xhtml">

  <head runat="server">
    <title>Time Entry</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="bootstrap.min.css" />
    <script src="bootstrap.min.js"></script>
    <link rel="stylesheet" href="bootstrap-theme.min.css" />
  </head>

  <body>
    <form id="form1" runat="server">
      <div class="container-fluid">
        <h1>Logo Book</h1>
        <p>Discover Artists and Shape Your Perfect Logo</p>
      </div>
      <div class="row">
        <div class="col-md-4" style="background-color:blue;">
          Welcome to Logo Book where you can browse through potyfolios of your prefered artist and see what they have to offer.
        </div>
        <div class="col-md-4" style="background-color:palegoldenrod;">
          Looking for an easier way to get in touch with these artists and give specific details needed for your project?
        </div>
        <div class="col-md-4" style="background-color:coral;">
          Feel free to use our Q&A section to voice and submit your needs such as fonts and images!
        </div>

      </div>
    </form>
  </body>

</html>

时间输入
标识书
探索艺术家,塑造完美的徽标

欢迎来到Logo Book,在这里你可以浏览你喜欢的艺术家的Potyfolio,看看他们能提供什么。 寻找一种更简单的方式与这些艺术家取得联系,并提供项目所需的具体细节? 请随意使用我们的问答部分来表达和提交您的需求,如字体和图像!
我在我的电脑上运行了这个精确的代码,它运行得很好。您如何尝试运行此代码?测试代码是否有效的最简单方法是在.html文件中键入代码,然后用浏览器打开它。

代码在.aspx页面中也可以正常工作。在创建新的web应用程序时,Global.asax页面不包含行号2、3和4。要运行页面,只需删除它们并运行它。它肯定会运行。如果你想使用第二行,请详细描述你写这行的目的。因此,我们可以根据它找到解决方案。

这可能是因为您不能用数字(WebSite1.2中的2)启动标识符,特别是名称空间,请参阅另一个误导性编译器错误案例。您是对的,Zong,我用简单的名称WebSite1启动了一个新的网站项目,现在它正常运行。谢谢你的洞察力!