Author: Chaplain Doug | Posted on: 7/29/2009 12:02:02 PM | Views : 643

 VWD 2008 Express.  Visual Basic.
I have the following code which always returns "nothing":
RelationshipsListView.EditItem.FindControl("CurrentConstitLabel")
This is curious as I have a control with that ID in my EditItemTemplate of the ListView control.  This approach works fine with the InsertItem property, namely RelationshipsListView.InsertItem.FindControl("CurrentConstitLabel")
To debug I checked the property RelationshipsListView.EditItem.Controls.Count, which returns a 13.  When I cycled through the IDs of the controls, they were the control ID in my Item and Alternate Item templates.  Hence, Relationships ...

Go to the complete details ...