How to create a User Registration page using asp.net mvc 4.

In this post I have explained How to create a User Registration page using asp.net mvc 4. This is the basic example for the beginners of mvc4 as they are always have some common question at the start up like where to start, what will be my first page in mvc4? etc. So, Here I am going to explain some basic page example like, create registration page, login page, career etc.
Registration Page in MVC4

Last 5 inserted record.
User ID UserName Full Name Email ID
74828 l asdadfa a@gmail.com
74827 sagar Sagar Chowdhury sagar.xyz@gmail.com
74826 testteam test test@test.com
74825 fdsfs vd gdf@fds.com
74824 asdasdas123 dadasd asdasdasda@gmail.com
How to create a User Registration page using asp.net mvc 4.
 

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - My ASP.NET MVC Application</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("your logo here", "Index", "Home")</p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            <li>@Html.ActionLink("Home", "Index", "Home")</li>
                            <li>@Html.ActionLink("About", "About", "Home")</li>
                            <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - My ASP.NET MVC Application</p>
                </div>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)
    </body>
</html>


Posted By :