Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 20th, 2006, 05:45 AM
Authorized User
Join Date: Jan 2006
Location: , , .
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,

  #2 (permalink)  
Old December 20th, 2006, 06:22 AM
Registered User
Join Date: Dec 2006
Location: Tomsk, , Russia.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to DuhMaster

try to use

punk`s not dead

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:28 AM.

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