datalist issue
Messages   Related Types
This message was discovered on microsoft.public.dotnet.general.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

DC Gringo
I have a datalist that will always return 2 records. The first record
should be called "Latest Edition", the second "Previous Edition". How can I
identify which is which in the .net code and replace have this label show up
correctly. Below, I have hardcoded in "Latest Edition"..

<asp:DataList id="DataList1" runat="server" DataSource='<%#
DataBinder.Eval(DsEobNew1, "Tables[fn3ExecBriefHome]") %>'
DataMember="fn3ExecBriefHome" DataKeyField="gc_id" SHOWHEADER="False"
SHOWFOOTER="False">

<ITEMTEMPLATE>
. <B>Latest Edition</B> - <A HREF="index.aspx?pageID=eobDoc&g=<%#
DataBinder.Eval(Container, "DataItem.gc_id") %>"><%#
DataBinder.Eval(Container, "DataItem.published") %></A>
</ITEMTEMPLATE>

</ASP:DATALIST>

--
_____
DC G

Reply to this message...
 
    
Shailesh Jannu (VIP)
You can use DataBind event of DataList to do more complex replace or changes
inside item template.

"DC Gringo" wrote:

[Original message clipped]

Reply to this message...
 
    
DC Gringo
Could you elaborate a bit on this? Code sample perhaps?

_____
DC G

"Shailesh Jannu" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
> You can use DataBind event of DataList to do more complex replace or
changes
[Original message clipped]

Reply to this message...
 
 
System.Web.UI.DataBinder
System.Web.UI.WebControls.DataList




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com