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
sheetal
NA
22
20.3k
How to make web user control readonly
Feb 20 2012 3:12 AM
Hi,
I have a web user control gridview containing table and rows and columns. I want to make it readonly based on certain conditions.
I have declared property in web user control page as follows:
public Boolean ReadOnly
{
get
{
return ViewState["ReadOnly"] == null ? false : Convert.ToBoolean(ViewState["ReadOnly"]);
}
set
{
ViewState["ReadOnly"] = value;
}
}
Now I want to call this and set the control to readonly. How to do that?
Thanks,
Sheetal
Reply
Answers (
1
)
How can i integrate or embedded RSS feeds in my site
How i can implement SEO(search engine optimization) in my website