<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%= Html.ValidationSummary() %> <% using(Html.BeginForm("Register")) %> <% { %>

Nouvel utilisateur

*
<%= Html.LabelFor(model => model.Name) %> <%= Html.TextBox( "Name" ) %> <%= Html.ValidationMessage("Name", "*", new { @id="Err_ur_Name", @class="error" }) %>
<%= Html.LabelFor(model => model.UserName) %> <%= Html.TextBox( "UserName" ) %> <%= Html.ValidationMessage("UserName", "*", new { @id="Err_ur_UserName", @class="error" }) %>
<%= Html.LabelFor(model => model.Password) %> <%= Html.Password( "Password" ) %> <%= Html.ValidationMessage("Password", "*", new { @id="Err_ur_Password", @class="error" }) %>
<%= Html.LabelFor(model => model.Email) %> <%= Html.TextBox( "Email" ) %> <%= Html.ValidationMessage("Email", "*", new { @id="Err_ur_Email", @class="error" }) %>
<%= Html.LabelFor(model => model.Address) %> <%= Html.TextBox( "Address" ) %> <%= Html.ValidationMessage("Address", "*", new { @id="Err_ur_Address", @class="error" }) %>
<%= Html.LabelFor(model => model.CityAndState) %> <%= Html.TextBox( "CityAndState" ) %> <%= Html.ValidationMessage("CityAndState", "*", new { @id="Err_ur_CityAndState", @class="error" }) %>
<%= Html.LabelFor(model => model.ZipCode) %> <%= Html.TextBox( "ZipCode" ) %> <%= Html.ValidationMessage("ZipCode", "*", new { @id="Err_ur_ZipCode", @class="error" }) %>
<%= Html.LabelFor(model => model.Phone) %> <%= Html.TextBox( "Phone" ) %> <%= Html.ValidationMessage("Phone", "*", new { @id="Err_ur_Phone", @class="error" }) %>
<%= Html.LabelFor(model => model.Mobile) %> <%= Html.TextBox( "Mobile" ) %> <%= Html.ValidationMessage("Mobile", "*", new { @id="Err_ur_Mobile", @class="error" }) %>
<% } %>