T
Tina
(on the prior message the code snippet was wrong. this is the one that
executes the set in a loop until a stack overflow occurrs)
(using 1.1)
I have the following property defined in an ascx control.
public string Title //property
{
get {return this.Title; }
set {this.Title = value; }
}
Whan code on a page that contains this control sets the control, for
instance
myControl.title = "this is a heading"
The set executes over and over until a stack overflow occurs.
I am just learning C# and I know there must be something wrong but I don't
have much docs on property setting.
Thanks,
T
executes the set in a loop until a stack overflow occurrs)
(using 1.1)
I have the following property defined in an ascx control.
public string Title //property
{
get {return this.Title; }
set {this.Title = value; }
}
Whan code on a page that contains this control sets the control, for
instance
myControl.title = "this is a heading"
The set executes over and over until a stack overflow occurs.
I am just learning C# and I know there must be something wrong but I don't
have much docs on property setting.
Thanks,
T