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
ANKIT SHUKLA
NA
173
8.1k
Object reference not set to an instance of an object
Jun 11 2018 2:06 AM
Thats My cshtml Page
if i use any Razor Syntex in page with calling : @model myProjectName.Model.LoginModel
@model OnevisitAdminWebApplication1.Models.LoginModel
@{
Layout =
null
;
}
<!DOCTYPE html>
<html>
<head>
<meta name=
"viewport"
content=
"width=device-width"
/>
<title>Login</title>
@Styles.Render(
"~/Content/css"
)
@Scripts.Render(
"~/bundles/modernizr"
)
</head>
<body>
@
using
(Html.BeginForm())
{
<div
class
=
"container"
>
<div
class
=
"row"
>
<div
class
=
"col-md-4 col-md-offset-4"
>
<br>
<!-- Nav tabs -->
<ul
class
=
"nav nav-tabs"
role=
"tablist"
>
<li>
<a href=
"#user"
role=
"tab"
data-toggle=
"tab"
class
=
"big"
>Login </a>
</li>
</ul>
<div
class
=
"tab-content"
>
<div
class
=
"tab-pane fade"
id=
"user"
>
<br>
<fieldset>
<div
class
=
"form-group"
>
<div
class
=
"right-inner-addon"
>
<i
class
=
"glyphicon glyphicon-envelope"
></i>
@Html.TextBox(Model.UserName)
@*<input
class
=
"form-control input-lg"
value=
"UserName"
id=
"UserName"
required=
""
placeholder=
"Email Address"
type=
"text"
>*@
</div>
</div>
<div
class
=
"form-group"
>
<div
class
=
"right-inner-addon"
>
<i
class
=
"glyphicon glyphicon-lock"
></i>
@Html.TextBox(Model.Password)
@*<input
class
=
"form-control input-lg"
id=
"Password"
value=
"Password"
required=
""
placeholder=
"Password"
type=
"password"
>*@
</div>
</div>
</fieldset>
<br><div
class
=
" text-center"
>
@ViewBag.message
<button
class
=
"btn btn-success btn-block"
>LOGIN</button>
</div>
</div>
</div>
</div>
</div>
</div>
}
</body>
@Scripts.Render(
"~/bundles/jquery"
)
@Scripts.Render(
"~/bundles/bootstrap"
)
</html>
Reply
Answers (
1
)
how to make report using user session and print user name,id
ASP.net grid view dynamic grid view header to be binded