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
jas spiegeal
NA
3
4.5k
Visibility in web control
Nov 17 2011 12:14 AM
I am wondering how I could modify the code listed below to hide or show individual rows in a detailsview control. Basically all the textbox rwos will be set
to invisible. However when a user selects a dropdown list control to say display the edititable version of the textbox cell, that is when I want to set the visible proerty to trure.
if (DetailsView1.CurrentMode == DetailsViewMode.ReadOnly)
{
DetailsView1.FindControl("TextBoxAttid")).visibility="true";
}
else if (DetailsView1.CurrentMode == DetailsViewMode.Edit)
{
DetailsView1.FindControl("TextBoxAttid")).visibility="true";
}
What do you think would be the best way to accomplish this goal?
Reply
Answers (
0
)
Ilist
web control problem