Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Alessandro Zifiglio #1
Displaying template content in vs.net designer
hi, I'm trying to display the content within my "templated databound custom
controls" templates at design time, in the vs.net designer. I'm able to get
the cotents of my template using the GetTextFromTemplate() method. This
returns all controls within my template as a string, for example if i had a
label control in there it would return : "<asp:label id="label1"
runat=server></asp:label>"
However in my GetDesignTimeHtml function within my designer class which i
use when i need an appropriate display of my custom control in the vs.net
designer, i'm unable to view the label control. Its like its not even there.
I'm able to pass html and display html. How does the vs.net designer view
controls. How do i display the contents of my template in the vs.net
designer. I'm running out of ideas.
I'd appreciate any help.
Alessandro Zifiglio
Alessandro Zifiglio Guest
-
Displaying External Content
Hi, I have long dealt with graphic design, but am fairly new to web design and am having a problem. I have a banner and left menu that I want to... -
Can't View Item Template in Designer Viewer
Hi, I creted a usercontrol which has an ITemplate in it named ItemTemplate. I am using ASP 2.0. When I drag the user control on to my .aspx... -
DMX Template not displaying page content
I created a template in Dreamweaver MX 2004 that has some Coldfusion in it and it has the extension dmx.cfm as it supposed to. The template has the... -
Dreamweaver template code rearranged by Studio.NETvisual designer
I have used Dreamweaver MX2004 to create a C# ASP.NET website. I used the template functionality to give me consistant page design. My problem is... -
Displaying dbase content
I am retreiving information from a database and it works ok, but its rather a lot and I like to limit each web page to 10 rows of data, then put... -
Alessandro Zifiglio #2
Re: Displaying template content in vs.net designer
why is it that everytime i post a question in here on templates and web
custom controls I never get any replies. The documentation on using
templates in custom web controls is very poor and yet the funtionality I
need in my custom control is the same funtionality you have on any of the
webcontrols that are built by microsoft themselves.
In particular a control that behaves in this way is the datalist control.
You can set an itemTemplate, header and footer Template etc. You can then
drag and drop controls into this at design time and i've gotten this far.
And then the datalist displays these controls you added as you click the End
Edit template. This I'm unable to achieve. Can someone from MS get back to
me on this.
This is the second time i post a question regarding templates to which I
never get an answer. Again i'd appreciate any help on this. I just dont want
to have to beg for the answers when I'm a client using your products,
invested in your products and work with your products. Furthermore all the
samples you got on templates in the docs, even though are a great starting
point dont work at all, and i dont even know how i managed to get this far,
only to get stuck here!!!!
"Alessandro Zifiglio" <alessandrozifiglio@NO-SPAM-hotmail.com> wrote in
message news:rb6wb.8292$i_5.6059@news.edisontel.com...custom> hi, I'm trying to display the content within my "templated databoundget> controls" templates at design time, in the vs.net designer. I'm able toa> the cotents of my template using the GetTextFromTemplate() method. This
> returns all controls within my template as a string, for example if i hadthere.> label control in there it would return : "<asp:label id="label1"
> runat=server></asp:label>"
>
> However in my GetDesignTimeHtml function within my designer class which i
> use when i need an appropriate display of my custom control in the vs.net
> designer, i'm unable to view the label control. Its like its not even> I'm able to pass html and display html. How does the vs.net designer view
> controls. How do i display the contents of my template in the vs.net
> designer. I'm running out of ideas.
>
> I'd appreciate any help.
>
> Alessandro Zifiglio
>
>
Alessandro Zifiglio Guest



Reply With Quote

