using controls in user control as control parameters on parent

using controls in user control as control parameters on parent

Post by TWFuaXNoIE » Wed, 13 Dec 2006 15:44:00


Hi,
Yes you can do it.You can write following code in parent page:

DropDownList ctrldrp =(DropDownList)
UserControlInstance.FindControl("DropDownListName")
ctrldrp.DataSource = ds( a dataset variable)

I think this is what you are looking for.

Thanks and Regards,
manish bafna
 
 
 

using controls in user control as control parameters on parent

Post by HP » Thu, 21 Dec 2006 07:14:46

> Hi,

Yes, but I was thinking about declarative databinding (i.e. choosing
ddl as a source for select parameter of datasource control in the
visual studio designer).

thanks
HP