accessing controls in listview on page_load
Posted on 2010-09-02
I'm having trouble using the findcontrol method to modify listview content on page_load. What i need to do is populate a listbox programmatically. I know the reason is because i can't modify a listview that hasnt been created yet.
I get the error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
the index is -1, but there must be a way to access a nested control on page_load or without the user having to click something right?