locked
Error - Could not find control 'cbHistory' in control parameter RRS feed

  • Question

  • User1663633314 posted

    The scenario is I have a Gridview on a tab control.  I added a dropdown to filter the gridview so the selcted value is a parameter on the gridview datasource.  My problem is that I ge thtis error when the DropDown is located on the tab that contains the gridview.  If I place it outside the tab control it works just fine.  This is all being done in MS Visual Web Designer 2010 Express with  VB.NET.  Any assistance would be gretaly apprecieated.

     

    Thanks,

    Rod

    Monday, September 30, 2013 11:19 AM

Answers

  • User-851967432 posted

    Any time the compiler can't find a control in a page, it's searching in the wrong container and/or the scope of the .findcontrol is wrong.

    You sometimes have to start at the page level object then peel the onion.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 30, 2013 1:27 PM