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
Marius Vasile
592
1.9k
146k
asp.net core Change span color if @Html.DisplayFor has no data
Dec 23 2020 6:09 PM
<div
class
=
"col-2"
>
<span
class
=
"form-control form-control-sm"
>@Html.DisplayFor(model => model.PTWContent.PTWNo)</span>
</div>
I want to have the textbox color yellow if there is no data retrieved from the database and to display "N/A". Is possible?
Reply
Answers (
3
)
Model is not getting bind from Ajax Call - .Net core 3.1
AsyncFileUpload control generates MissingManifestResourceException