Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Templated control not rendering Web User Controls

Reply
Thread Tools

Templated control not rendering Web User Controls

 
 
Allan Ebdrup
Guest
Posts: n/a
 
      03-27-2006
I have a templated control, it works fine at runtime, but at designtime I
can't see the web user controls used in the template. I have this template
in my control:
---
<Wizard>test
<uc1:TelephoneNumber ID="TelephoneNumber1" runat="server" />
</Wizard>
---
But in the design view only the "test" text appears, at runtime the web user
control is rendered fine.
How do I get the designtime to render the web user control?

Kind Regards,
Allan Ebdrup


 
Reply With Quote
 
 
 
 
Phillip Williams
Guest
Posts: n/a
 
      03-27-2006
http://msdn.microsoft.com/library/de...imeSupport.asp
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com


"Allan Ebdrup" wrote:

> I have a templated control, it works fine at runtime, but at designtime I
> can't see the web user controls used in the template. I have this template
> in my control:
> ---
> <Wizard>test
> <uc1:TelephoneNumber ID="TelephoneNumber1" runat="server" />
> </Wizard>
> ---
> But in the design view only the "test" text appears, at runtime the web user
> control is rendered fine.
> How do I get the designtime to render the web user control?
>
> Kind Regards,
> Allan Ebdrup
>
>
>

 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      03-28-2006
Hi Allan,

I've performed some tests according to the custom template control you
mentioned. Yes, I did reproduce the problem behavior you encountered. I
think it is possibly caused by some additional required implementation we
didn't add, I'm currently doing some further research on this and will
update you as soon as I get any new update. In the mean time, if there is
any new finding on your side, also welcome to post here.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.




 
Reply With Quote
 
Allan Ebdrup
Guest
Posts: n/a
 
      03-28-2006
"Steven Cheng[MSFT]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Allan,
>
> I've performed some tests according to the custom template control you
> mentioned. Yes, I did reproduce the problem behavior you encountered. I
> think it is possibly caused by some additional required implementation we
> didn't add, I'm currently doing some further research on this and will
> update you as soon as I get any new update. In the mean time, if there is
> any new finding on your side, also welcome to post here.


I'm looking forward to hearing what you find. I've noticed that if you
enable template editing the web user control is displayed correctly when
editing the template. Also if the control is a CompositeControl child web
user controls are rendered correctly in design time.

Kind Regards,
Allan Ebdrup


 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      03-30-2006
Hi Allan,

Sorry for keep you waiting. After some further research, I found that for
normal view in design-time, it is the fixed behavior that usercontrol'
won't display. This is the same for those template in FormView and
GridView.... And only in EditMode or those editable template will those
usercontrol be displayed as runtime style. I'm afraid currently it is
limited. However, you can submit this as a request to the MSDN product
feedback center so that the dev teams can get feedback on this:

http://lab.msdn.microsoft.com/produc...k/default.aspx

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
How to access templated controls in user control? Ajak ASP .Net Web Controls 0 12-22-2006 02:53 AM
ASP.NET Templated User Controls - Limit child controls allowable within a templated control JohnyStyles@gmail.com ASP .Net 0 05-29-2006 06:00 PM
Custom Templated Control not rendering asp.net controls correctly news.microsoft.com ASP .Net Building Controls 1 04-09-2005 11:41 AM
Custom Templated Control not rendering asp.net controls correctly news.microsoft.com ASP .Net 1 04-09-2005 11:41 AM
Custom Templated Control not rendering asp.net controls correctly news.microsoft.com ASP .Net Web Controls 1 04-09-2005 11:41 AM



Advertisments