Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Using a Webb Usercontrol in an aspx page


Message #1 by "Ganesh Ramamurthy" <r_ganesh76@h...> on Wed, 29 Jan 2003 05:21:27
Dear all, 

I have created a user control (MyControl.ascx) and am using it in an aspx 
page. I have more than one instance (MyControl1, MyControl2, MyControl3) 
of the control in the page. In the aspx.cs, I have created a prtected 
variables of the class MyControl (MyControl1, MyControl2, MyControl3)for 
each control which i placed in the page. I am setting the values of some 
properties inside the web control. 

But, I find that only the last assigned values of the properties are 
contained in all the three objects. I need to get different values for the 
different controls. How can I achieve this. 

Please help......

Regards
Ganesh

  Return to Index