Dear Student ,
Please , Follow the step to create your Sign In Form in Aps.net Mvc 4
Step 1 :
Create a Database with " Customer " following Types
Please , Follow the step to create your Sign In Form in Aps.net Mvc 4
Step 1 :
Create a Database with " Customer " following Types
Step 2: Create a Action Result method in your Controllar with Name "SignIn" and Follow the following Step ....
Step 3 : Create your SignIn Form in View page with following Code Step by Step ;
@model Database_Connection.Models.Customers
@{
ViewBag.Title = "SignIn";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>SignIn</h2>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Customers</legend>
<div class="editor-label">
Enter your Email Id
</div>
<div class="editor-field">
<input type="email" name="email" required/>
</div>
<div class="editor-label">
Enter your Mobile No
</div>
<div class="editor-field">
<input type="text" name="mobile" required/>
</div>
<p>
<input type="submit" value="Sign In" />
</p>
</fieldset>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
Let's See , your Output :
No comments:
Post a Comment