TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Satnam Singh
NA
4
1.2k
Help Me in MVC4 Design page
Aug 14 2016 7:21 AM
I have two Code in mvc4 design page
@model MvcApplication1.Models.ConnectionDB
@{
ViewBag.Title = "Login";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<link rel="stylesheet" type="text/css" href="~/Content/Login.css">
<link rel="stylesheet" type="text/css" href="~/Content/bootstrap-theme.css">
<link rel="stylesheet" type="text/css" href="~/Content/bootstrap-theme.css.map">
<link rel="stylesheet" type="text/css" href="~/Content/bootstrap.css">
<div class = "container">
<div class="wrapper">
<form action="#" method="post" name="Login_Form" class="form-signin">
<h3 class="form-signin-heading">Welcome Please Sign In</h3>
<hr class="colorgraph"><br>
<input type="text" class="form-control" name="Username" placeholder="Username" required="" autofocus="" />
<br />
<input type="password" class="form-control" name="Password" placeholder="Password" required=""/>
<br />
<button class="btn btn-lg btn-primary btn-block" name="Submit" value="Login" type="Submit">Login</button>
<div>
<br />
<a href="#">Create account</a> or <a href="#">reset password</a>
</div>
</form>
</div>
</div>
<h3>All Rights are resvered to Satnam</h3>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------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.");
<div>
<fieldset>
<legend>Login</legend>
<div class="editor-label">
@Html.LabelFor(u => u.UserName)
</div>
<div class="editor-field">
@Html.TextBoxFor(u => u.UserName)
@Html.ValidationMessageFor(u => u.UserName)
</div>
<div class="editor-label">
@Html.LabelFor(u => u.Password)
</div>
<div class="editor-field">
@Html.PasswordFor(u => u.Password)
@Html.ValidationMessageFor(u => u.Password)
</div>
<div class="editor-label">
@Html.CheckBoxFor(u => u.RememberMe)
@Html.LabelFor(u => u.RememberMe)
</div>
<input type="submit" value="Log In" />
</fieldset>
</div>
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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.
Reply
Answers (
2
)
I have created a sub-domain and host my asp project there
CS0103: The name 'url' does not exist in the current contex