How do we make a poperty read only?
Answer / jitender
Suppose we have a property BarColor
the to make it read only use
private string color;
public string BarColor
{
get
{
return(color);
}
} // No need to set it
| Is This Answer Correct ? | 5 Yes | 0 No |
What is the difference between control and component?
What are the two properties that are common in every validation control?
What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?
How to rename a table using sql queries?
Explain the Order of events in an asp.net page?
What are the disadvantages of using session?
How to check the end of the record in Datareader?
What base class do all Web Forms inherit from?
Difference between ASP & ASP.NET Session State
How do you register a .NET assembly?
How does session state work in asp.net?
How do you create master pages in asp.net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)