1

エラーが発生しています Compiler Error Message: CS0103: The name 'Maps' does not exist in the current context このファイルに MapAddress.cshtml という名前を付け、jquery ファイルも私が持っているものと一致し、ASP のバージョン 2 もインストールしました。 NET Web HelpersLibrary. すべてが私の側からほとんど設定されていますが、それでもそのエラーに直面しています。理由はわかりませんか?

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Map an Address</title>
  <script src="~/Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
</head>

<body>
    <h1>Map an Address</h1>
    <form method="post">
        <fieldset>
          <div>
            <label for="address">Address:</label>
            <input style="width: 300px" type="text" name="address" value="@Request["address"]"/>
            <input type="submit" value="Map It!" />
           </div>
        </fieldset>
    </form>
    @if(IsPost) {
        @Maps.GetGoogleHtml(Request.Form["address"],
            width: "400",
            height: "400")
    }
</body>
</html>
4

0 に答える 0