Using a PlaceHolder in a Web User Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yannis CORRE via .NET 247

    Using a PlaceHolder in a Web User Control

    Hello,

    I have two questions :

    1 - I want to generate dynamically a personnalized table from a dataset. I want to create each of my rows and columns.
    So, I use a HtmlTable and I build my Table with it. After, I add this control in a PlaceHolder to view my Table on my WebForm.
    Ok, It works perfectly. I would want to know if it's the best method to build a table without using the classic WebTable component.

    2 - Now, I want to use this method in a Web User Control. I place a PlaceHolder in my control and I build my table (like on my WebForms). But, I don't see my table !
    I suppose that it because of the HtmlTable component in my Web User Control ?
    How can I do it ?

    Thanks in advance.

    --------------------------------
    From: Yannis CORRE

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>5D7uSARTTUa HjmS/Lk+JJA==</Id>
  • John Saunders

    #2
    Re: Using a PlaceHolder in a Web User Control

    "Yannis CORRE via .NET 247" <anonymous@dotn et247.com> wrote in message
    news:%23gYtKKzS EHA.1172@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > Hello,
    >
    > I have two questions :
    >
    > 1 - I want to generate dynamically a personnalized table from a dataset. I[/color]
    want to create each of my rows and columns.[color=blue]
    > So, I use a HtmlTable and I build my Table with it. After, I add this[/color]
    control in a PlaceHolder to view my Table on my WebForm.[color=blue]
    > Ok, It works perfectly. I would want to know if it's the best method to[/color]
    build a table without using the classic WebTable component.

    I don't know about "best", but if it doesn't cause any problems, I'd leave
    it alone and continue with some other task.
    [color=blue]
    > 2 - Now, I want to use this method in a Web User Control. I place a[/color]
    PlaceHolder in my control and I build my table (like on my WebForms). But, I
    don't see my table ![color=blue]
    > I suppose that it because of the HtmlTable component in my Web User[/color]
    Control ?[color=blue]
    > How can I do it ?[/color]

    There's nothing inherent about user controls which should prevent this from
    working.
    --
    John Saunders
    johnwsaundersii i at hotmail


    Comment

    Working...