Accessing Controls in FormView
I have three DataBound DropListBox's that I need to base off of each others results. DLB(1) has options 1,2,3 DLB(2) sees which option has been selected on DLB(1) and narrows its field from there to only show items 4,7,5 or something. then DLB(3) does the same with two.
I could do this easily, however I cannot access the controls directly on the SQLDatabaseConnection because they are in the FormView object.
I have tried setting the SelectParameters to the ListBoxes, but don't know how to tell it where they are.
I have tried:
asp:ControlParameter ControlID="DLB1"
asp:ControlParameter ControlID='<%# EVAL(FormView1.FindControl("DB1")) %>
and even a CType within the EVAL statement.
No Matter which one I try it says it cannot find the Control inside.
Any Help would be appreciated.
|