Click here to Skip to main content
15,909,205 members
Home / Discussions / Web Development
   

Web Development

 
GeneralSession Object not saved Pin
ISIS5517-Mar-02 13:32
ISIS5517-Mar-02 13:32 
GeneralRe: Session Object not saved Pin
Konstantin Vasserman18-Mar-02 11:25
Konstantin Vasserman18-Mar-02 11:25 
GeneralRe: Session Object not saved Pin
Mauricio Ritter19-Mar-02 0:52
Mauricio Ritter19-Mar-02 0:52 
QuestionHow to get a primary key? Pin
Philip Patrick16-Mar-02 5:59
professionalPhilip Patrick16-Mar-02 5:59 
AnswerRe: How to get a primary key? Pin
mortrr18-Mar-02 12:36
mortrr18-Mar-02 12:36 
GeneralThanx! Pin
Philip Patrick18-Mar-02 13:04
professionalPhilip Patrick18-Mar-02 13:04 
QuestionAny About SMS ?? Pin
GooGle15-Mar-02 22:20
GooGle15-Mar-02 22:20 
QuestionWhat is ReadOnly? Pin
omkamal15-Mar-02 6:38
omkamal15-Mar-02 6:38 
I had a strong belief that when a property of an Object is defined as ReadOnly then it means that you can only read its value at runtime and cannot modify the value. If this is wrong just donot read further, but just correct me.

This is what I found confusing...

In MSDN's documentation for Style property of a Web Control it says,...


[Visual Basic]
Public ReadOnly Property Style As CssStyleCollection
[C#]
public CssStyleCollection Style {get;}
...


But then they have shown an example of how to use the "visibility" key of the CssStyleCollection to hide and unhide a label control programmatically, like this....


void Button1_Click(Object sender, EventArgs e)
{
Label1.Style["visibility"]= ((Label1.Style["visibility"]=="hidden")?"show":"hidden");
}


If one is able to change a property's value then why the hell do they declare it as *ReadOnly*. And if you are a C# programmer, check out their declaration above that they dont have the set() method.

Then how does it work???Confused | :confused:

omkamal
AnswerRe: What is ReadOnly? Pin
Konstantin Vasserman15-Mar-02 15:57
Konstantin Vasserman15-Mar-02 15:57 
GeneralUnlinking Links Pin
Lewis14-Mar-02 7:42
Lewis14-Mar-02 7:42 
GeneralADO.NET in ASP.NET Pin
Mazdak14-Mar-02 4:33
Mazdak14-Mar-02 4:33 
GeneralRe: ADO.NET in ASP.NET Pin
Paul Watson14-Mar-02 21:39
sitebuilderPaul Watson14-Mar-02 21:39 
GeneralRe: ADO.NET in ASP.NET Pin
Mazdak16-Mar-02 7:37
Mazdak16-Mar-02 7:37 
GeneralPaging Recordset problem Pin
Philip Patrick13-Mar-02 22:35
professionalPhilip Patrick13-Mar-02 22:35 
GeneralRe: Paging Recordset problem Pin
Nick Parker14-Mar-02 4:35
protectorNick Parker14-Mar-02 4:35 
GeneralRe: Paging Recordset problem Pin
Philip Patrick14-Mar-02 4:53
professionalPhilip Patrick14-Mar-02 4:53 
GeneralISAPI Extension Problem Pin
code dope13-Mar-02 1:27
code dope13-Mar-02 1:27 
GeneralRe: ISAPI Extension Problem Pin
code dope13-Mar-02 3:14
code dope13-Mar-02 3:14 
GeneralASP.NET Pin
Mazdak12-Mar-02 19:12
Mazdak12-Mar-02 19:12 
GeneralRe: ASP.NET Pin
omkamal14-Mar-02 7:21
omkamal14-Mar-02 7:21 
GeneralRe: ASP.NET Pin
Mazdak14-Mar-02 9:12
Mazdak14-Mar-02 9:12 
GeneralRe: ASP.NET Pin
omkamal15-Mar-02 6:43
omkamal15-Mar-02 6:43 
GeneralRe: ASP.NET Pin
Andy Smith17-Mar-02 21:02
Andy Smith17-Mar-02 21:02 
GeneralRe: ASP.NET Pin
Mazdak17-Mar-02 21:07
Mazdak17-Mar-02 21:07 
GeneralRe: ASP.NET Pin
Andy Smith18-Mar-02 13:08
Andy Smith18-Mar-02 13:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.