1

I am facing an error Compiler Error Message: CS0103: The name 'Maps' does not exist in the current context i named this file as MapAddress.cshtml and jquery file also matches which i have and i have also intalled version 2 of the ASP.NET Web HelpersLibrary. everything almost set from my side but still i am facing that error,i don't know why?

<!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>
Radhe Sham
  • 141
  • 10

0 Answers0