View and textbox
-
Hey, I write an view and when I try to run my page, running with error. its my code
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
InsertUpdatePerson
</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>InsertUpdatePerson</h2> <div id = "leftside"> <%using (Html.BeginForm()) { %> <div> <fieldset> <div class="editor-label"> <label for= "Fname">FirstName:</label> </div> <div class="editor-field-textbox"> <!--textboxname,value,create attribute for textbox!--> <%Html.TextBox("Fname",null, new{@class= "Form\_TextBox"})%> </div> <div class="editor-label"> <label for="Sname">LastName:</label> </div> <div class= "editor-field-textbox"> <%Html.TextBox("Sname",null, new{@class= "Form\_TextBox"})%> </div> <div class="editor-label"> <label for= "Gender">Gender:</label> </div> <div class="editor-field-textbox"> <!--textboxname,value,create attribute for textbox!--> <%Html.DropDownList()%> </div> </fieldset> </div> <%} %> </div>
</asp:Content>
and its the error
Line 18:
Line 19:
Line 20: <%Html.TextBox("Fname",null, new{@class= "Form_TextBox"})%>
Line 21:Line 22:
Error is line 20 I am just following an sample job.what could be the problem?
-
Hey, I write an view and when I try to run my page, running with error. its my code
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
InsertUpdatePerson
</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>InsertUpdatePerson</h2> <div id = "leftside"> <%using (Html.BeginForm()) { %> <div> <fieldset> <div class="editor-label"> <label for= "Fname">FirstName:</label> </div> <div class="editor-field-textbox"> <!--textboxname,value,create attribute for textbox!--> <%Html.TextBox("Fname",null, new{@class= "Form\_TextBox"})%> </div> <div class="editor-label"> <label for="Sname">LastName:</label> </div> <div class= "editor-field-textbox"> <%Html.TextBox("Sname",null, new{@class= "Form\_TextBox"})%> </div> <div class="editor-label"> <label for= "Gender">Gender:</label> </div> <div class="editor-field-textbox"> <!--textboxname,value,create attribute for textbox!--> <%Html.DropDownList()%> </div> </fieldset> </div> <%} %> </div>
</asp:Content>
and its the error
Line 18:
Line 19:
Line 20: <%Html.TextBox("Fname",null, new{@class= "Form_TextBox"})%>
Line 21:Line 22:
Error is line 20 I am just following an sample job.what could be the problem?