473,421 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

Custom User Control is not rendered inside another user control in a server table.

Hi
I am using a <asp:Table> in a user control I created and in the loop of inserting another user control( a custom Calendar)
to the TableCell by the code:
TableCellObj.Controls.Add(myCustomUserControl) the table accepting this user control but do not render it
, so in that way I dont see the control in the table..., I tried also another user control with only html , and It doesnt rendered also
How can I fix this bug????
(Note: I do not want to use custom Web Control and to remain with the same objects)

Leeor Chernov
SPL , Israel

Nov 19 '05 #1
2 1261
Is the control even getting to that point of insertion?
Set a break point in that loop and step through it. Also, check if that
object is actually there or if it's "nothing".

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Leeor Chernov" wrote:
Hi
I am using a <asp:Table> in a user control I created and in the loop of inserting another user control( a custom Calendar)
to the TableCell by the code:
TableCellObj.Controls.Add(myCustomUserControl) the table accepting this user control but do not render it
, so in that way I dont see the control in the table..., I tried also another user control with only html , and It doesnt rendered also
How can I fix this bug????
(Note: I do not want to use custom Web Control and to remain with the same objects)

Leeor Chernov
SPL , Israel

Nov 19 '05 #2
Hi Curt,
Ofcourse it is getting to that point and the object has value in it as
it is ready to mbe shown , but the problem is that the object alive but
not rendered ..

It is not a simple problem (4 years exp. in asp.net)

Lee
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow...
1
by: JWhitted | last post by:
I created a control which parses its sub objects and wraps the code in an HTML wrapper. For example: <abc:Section ID="Section1" Runat="server" Title="Example"> <p>This is an example.</p>...
3
by: John Hughes | last post by:
I'm trying to add a user control to a form via the pages render method and I get the following error : "Control 'Button1' of type 'Button' must be placed inside a form tag with runat=server" ...
1
by: Paul | last post by:
Hi all, I'm making a custom control. I can set attributes to determine how the control is rendered, but I don't know how to access the text inside the tag. For example: <tagprefix:TestControl...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
1
by: Suresh | last post by:
Using ASP.NET 1.1 ---------------------- I have a custom collection of object that I'm binding to a datagrid. Each of these objects have another collection inside them. I have a user control...
0
by: pabloazorin | last post by:
I developed a Date Picker web control using C# and .net framework 1.1 I added my control to Visual Studio 2003 IDE toolbar. When I drag and drop my control to design web page, the control renders...
2
by: AlecL | last post by:
I have a page that has about 5 or 6 user controls ranging from hearders to footers to ad space but when I add a new user control which is a form it gives me the exception "page can have only one...
5
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.