Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Adding UC via Code (http://www.velocityreviews.com/forums/t780009-adding-uc-via-code.html)

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?

THanks!


public static TableRow
CreateDateRange(System.Web.UI.UserControl control )
{
TableRow row = new TableRow();
row.Cells.Add(new TableCell());
row.Cells[0].Controls.Add(control);
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.