DataList Fromatting Cell

Discussion in 'ASP .Net' started by Paul Say, Jun 24, 2005.

  1. Paul Say

    Paul Say Guest

    Here is the problem,

    I have a datalist that builds a list of links horizontally across the screen
    for a menu bar.

    i.e

    <asp:datalist id="menuTabs" runat="server>
    <ItemTemplate>
    <asp:Hyperlink id="myLink" runat="server">
    </ItemTemplate>
    </asp:datalist>

    At runtime how can I access the last cell that is created and change its
    width, as I want the last cell to padd out all remaining space in the table
    that is created by the datalist.

    Paul
    Paul Say, Jun 24, 2005
    #1
    1. Advertising

  2. In PreRender event:

    myList.Items[myList.Items.Count-1].FindControl("myLink");

    Eliyahu

    "Paul Say" <> wrote in message
    news:...
    > Here is the problem,
    >
    > I have a datalist that builds a list of links horizontally across the

    screen
    > for a menu bar.
    >
    > i.e
    >
    > <asp:datalist id="menuTabs" runat="server>
    > <ItemTemplate>
    > <asp:Hyperlink id="myLink" runat="server">
    > </ItemTemplate>
    > </asp:datalist>
    >
    > At runtime how can I access the last cell that is created and change its
    > width, as I want the last cell to padd out all remaining space in the

    table
    > that is created by the datalist.
    >
    > Paul
    >
    >
    Eliyahu Goldin, Jun 26, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nevyn Twyll
    Replies:
    8
    Views:
    1,866
  2. news.rcn.com
    Replies:
    1
    Views:
    9,657
    Chris Smith
    Jul 12, 2004
  3. gt
    Replies:
    4
    Views:
    327
  4. sir_alex

    Fromatting an xml file

    sir_alex, Feb 2, 2006, in forum: Python
    Replies:
    2
    Views:
    292
  5. Lit
    Replies:
    4
    Views:
    355
Loading...

Share This Page