Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 20th, 2006, 05:45 AM
Authorized User
Join Date: Jan 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Add User Control to table cell in another UserCont


Right now im using one user control in an aspx page as..

<%@ Register TagPrefix="cc1" Namespace="cssc.Web.Controls" Assembly="Clock" %>

<div id="lCurrTime_container" style="BORDER-RIGHT: black 1px solid; BORDER-TOP: gray 1px; DISPLAY: block; FONT-WEIGHT: bold;

FONT-SIZE: 7pt; Z-INDEX: 102; LEFT: 0px; BORDER-LEFT: gray 1px; WIDTH: 120px; COLOR: black; BORDER-BOTTOM: black 1px solid;

POSITION: absolute; TOP: 0px; HEIGHT: 16px; BACKGROUND-COLOR: white; TEXT-ALIGN: center">

Current time: <cc1:clock id="Clock2" runat="server" UseExternalJS="true" DateTimeFormat="HH:mm"



 Now i need to use this one in to another webUserControl and dynamically add to Table Column.

   Table tbl_menu = new Table();
            TableCell tc = null;

     tbl_menu.Width = Unit.Percentage(100.00);
            tbl_menu.CellPadding = 0;
            tbl_menu.CellSpacing = 0;

            TableRow tr = new TableRow();
            tr.Height = Unit.Pixel(25);

            tc = new TableCell();
            tc.HorizontalAlign = HorizontalAlign.Right;

            LinkButton lb = new LinkButton();
            lb.ForeColor = System.Drawing.Color.FromKnownColor(KnownColor.Whi te);
            lb.Text = "Logout";

I need to add the User control to above mentioned table cell ..........

Pls help me how to do this..............

Thanks & Regards,

Old December 20th, 2006, 06:22 AM
Registered User
Join Date: Dec 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to DuhMaster

try to use

punk`s not dead

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using data from one cell to add to another LordJaffa Excel VBA 1 September 12th, 2007 03:27 PM
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
Add User Control in DatagridView Column HemaChaudhry Visual Basic 2005 Basics 0 January 23rd, 2006 08:43 AM
Can not add web user control in VS.Net sn00pyg4rfi3ld VS.NET 2002/2003 2 June 1st, 2005 03:29 AM
How to put a control inside a table cell? zach2004 ASP.NET 1.x and 2.0 Application Design 7 March 8th, 2004 03:28 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.