Velocity Reviews

Velocity Reviews (
-   ASP .Net Web Controls (
-   -   Adding UC via Code (

Larry R 07-06-2007 08:49 PM

Adding UC via Code
I have a page that dynamically generates various controls and places
them on a page. One of the controls is a UserControl .

I have a static class that I use for creating TableRows, which I add
to a Table at run time. The other controls such as a DropDownList and
TextBox work, but I can't get the usercontrol to work.

No errors, just nothing in the page.

Any Ideas?


public static TableRow
CreateDateRange(System.Web.UI.UserControl control )
TableRow row = new TableRow();
row.Cells.Add(new TableCell());
return row;


All times are GMT. The time now is 09:15 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.