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
Niyazi Toros
NA
41
6.7k
How to align disabled item in cshtml page?
May 27 2016 2:25 AM
Hi,
After I disable the "@Html.EditorFor" item in cshtml page I cannot align the item as shown below. How do I alaign the disabled item?
Here is my code;
<div
class
=
"form-group"
>
@Html.LabelFor(model => model.CustomerActive, htmlAttributes:
new
{ @
class
=
"control-label col-md-2"
})
<div
class
=
"col-md-10"
>
<div
class
=
"checkbox"
>
@Html.EditorFor(model => model.CustomerActive,
new
{ htmlAttributes =
new
{ disabled =
"disabled"
, @
readonly
=
"readonly"
, @
class
=
"form-control"
} })
@Html.ValidationMessageFor(model => model.CustomerActive,
""
,
new
{ @
class
=
"text-danger"
})
</div>
</div>
</div>
Reply
Answers (
2
)
how to remove or replace comma from string
grid view inside update panel edit value get old value ?