Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   DataList Fromatting Cell (http://www.velocityreviews.com/forums/t105304-datalist-fromatting-cell.html)

Paul Say 06-24-2005 07:26 AM

DataList Fromatting Cell
 
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 06-26-2005 10:30 AM

Re: DataList Fromatting Cell
 
In PreRender event:

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

Eliyahu

"Paul Say" <saywin@tpg.com.au> wrote in message
news:umWHG4IeFHA.1328@TK2MSFTNGP12.phx.gbl...
> 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
>
>





All times are GMT. The time now is 11:10 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


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