DataList Footer

Results 1 to 2 of 2

Thread: DataList Footer

  1. #1
    Join Date
    Dec 1969

    Default DataList Footer

    How do I access the footer in a code behind function other than OnItemDataBound? I need to loop through all Items in the DataList. I&#039;m currently using the code below which only gives me Items and AlternatingItems.<BR><BR>foreach( DataListItem AnswerItem in AnswerDataList.Items )<BR>.........

  2. #2

    Default RE: DataList Footer

    try using Controls instead of items ;)<BR><BR>foreach(Control dlc in DataList1.Controls)<BR> {<BR> Response.Write(dlc.GetType());<BR> Response.Write("<BR>");<BR> <BR> }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts