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.
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vincent Maverick DuranoPosted Aug 15, 2016, 10:10 AM
Vinay SinghPosted Aug 14, 2016, 1:56 PM