Displaying template content in vs.net designer

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139