Results 1 to 5 of 5

Thread: DataList child controls [resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141

    DataList child controls [resolved]

    I have a DataGrid that I populate from a DataTable. In the FooterTemplate, I have 2 LinkButtons. How do I control the LinkButtons? When I try to access them directly like:

    lnkbtnPrev.Visible = False

    I get an error saying 'Object reference not set to an instance of an object' Now, I think I need to use the DataList's Controls collection, but I am unsure of how. I thought it would be"

    dlstNews.Controls.Item(1).Visible = False

    but that didn't do anything.
    Last edited by blindlizard; Oct 31st, 2004 at 06:13 PM.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

Posting Permissions

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



Click Here to Expand Forum to Full Width