Author: kcis8rm | Posted on: 6/1/2009 6:00:44 AM | Views : 921

Hi
I am trying to get my head around User Controls and so far not doing well at it. For simplicities sake I have built a user control with a label on it. What I want is to populate the labels text with a string value in the controls constuctor.
 For example: I have built the usercontrol called testControl. With the below code on the c# page.1 private string myString; 2 //default constructor 3 public testControl() 4 { 5 } 6 7 //constructor with values 8 public testControl(string myValue) 9 { 10 myString=myValue; 11 } 12 13 Go to the complete details ...