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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vannela
    Replies:
    1
    Views:
    563
    Oleg Medyanik
    Dec 12, 2003
  2. David W. Simmonds

    Resizing Image control in DataList ItemTemplate

    David W. Simmonds, Jan 17, 2004, in forum: ASP .Net
    Replies:
    10
    Views:
    1,121
  3. Nevyn Twyll
    Replies:
    8
    Views:
    1,882
  4. Stimp
    Replies:
    3
    Views:
    5,731
    Stimp
    Sep 10, 2004
  5. Bennett Haselton
    Replies:
    1
    Views:
    5,341
    Joe Fallon
    Sep 24, 2004
Loading...

Share This Page