PC Review


Reply
Thread Tools Rate Thread

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

 
 
Leeor Chernov
Guest
Posts: n/a
 
      11th Oct 2005
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3VydF9DIFtNVlBd?=
Guest
Posts: n/a
 
      11th Oct 2005
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
>

 
Reply With Quote
 
Leeor Chernov
Guest
Posts: n/a
 
      16th Oct 2005
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 ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
user control inside a repeater - problem passing data table through a property Korel Oktar Microsoft ASP .NET 0 21st Jan 2008 06:27 PM
Get the id of a rendered control within user control alsu50@gmail.com Microsoft ASP .NET 3 28th Oct 2006 01:26 AM
Validator for server control inside a user control. =?Utf-8?B?c3VwZXJtYW4=?= Microsoft ASP .NET 0 4th Sep 2006 10:03 PM
Loading Dynamic User Control Error: "The control must be placed inside a form tag with runat=server" Help Please Second time posting. davidr@sharpesoft.com Microsoft ASP .NET 0 31st Aug 2006 06:26 PM
Event not firing for user control inside user control vatech1993 Microsoft ASP .NET 4 11th Dec 2004 02:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 AM.