Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Paging with DataLists


Message #1 by "Hugh McLaughlin" <hugh@k...> on Tue, 25 Jun 2002 12:34:16
Hello Everyone and thanks for your help in advance.  I have two questions 
regarding the use of datalists.  First, can paging be set up using 
AllowPaging the same way as in a datagrid?  Second, I am trying to use 
AlternatingItem using the following code:

<asp:DataList id="MyDataList" runat="server">
<AlternatingItemStyle BackColor="#CCCC99"></AlternatingItemStyle>	
<ItemTemplate>
	<TR>
	<TD align="left" valign="top" width="150"><%# Container.DataItem
("LastName") %>.&nbsp;<%# Container.DataItem("FirstName") %></TD>
	<TD align="left" valign="top" width="150"><%# Container.DataItem
("Company") %></TD>
	<TD align="left" valign="top" width="150"><%# Container.DataItem
("BusinessPhone") %></TD>
	</TR>			
</ItemTemplate>
</asp:DataList>

But it does not seem to work.  Any help with these issues would be 
greatly appreciated.  Thanks.

  Return to Index