By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,170 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,170 IT Pros & Developers. It's quick & easy.

Setting properties

P: n/a
I have the following property defined in an ascx control.

public string Title //property
get {return this.lblTitle.Text; }
set {this.lblTitle.Text = value; }

Whan code on a page that contains this control sets the control, for
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.

May 17 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.