I have two Code in mvc4 design page
@model MvcApplication1.Models.ConnectionDB
@{
ViewBag.Title = "Login";
Layout = "~/Views/Shared/_Layout.cshtml";
}
All Rights are resvered to Satnam
---------------------------------------------------------------------------------------------------------------------------------------------------------------------2nd code--------------------------------------------------------------
@model MvcApplication1.Models.ConnectionDB
@{
ViewBag.Title = "Login";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{
@Html.ValidationSummary(true, "Login failed. Check your login details.");
@Html.LabelFor(u => u.UserName)
@Html.TextBoxFor(u => u.UserName)
@Html.ValidationMessageFor(u => u.UserName)
@Html.LabelFor(u => u.Password)
@Html.PasswordFor(u => u.Password)
@Html.ValidationMessageFor(u => u.Password)
@Html.CheckBoxFor(u => u.RememberMe)
@Html.LabelFor(u => u.RememberMe)
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I want to use design of first code and html code of second code and make one code Help me how can i do that.

Vinay SinghRank #604 · 4K reputationPosted Aug 14, 2016, 9:56 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Aug 15, 2016, 6:10 AM EDT