DataList ItemTemplate

Discussion in 'ASP .Net Web Controls' started by Klaus E. Frederiksen, Apr 5, 2004.

  1. Hi

    I have some code to read columns from a DataGrid to find each columns
    headertext.I use this code:

    For Each colCur In dgcAct.Columns


    lblOrgVal = New System.Web.UI.WebControls.Label

    lblOrgVal.Text = colCur.HeaderText

    Now I want to do the same thing with a DataList, but this time I need to
    read the controls that's in the ItemTemplate of the DataList and find the
    text properties for all the labels control there.

    I can't find a way to do this.

    Anyone have a sugstion how this can be done ??

    Klaus E. Frederiksen, Denmark
     
    Klaus E. Frederiksen, Apr 5, 2004
    #1
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.