Subject: Accessing Controls in FormView
Posted By: cryspe Post Date: 5/16/2006 3:59:10 PM
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.


Go to topic 44191

Return to index page 285
Return to index page 284
Return to index page 283
Return to index page 282
Return to index page 281
Return to index page 280
Return to index page 279
Return to index page 278
Return to index page 277
Return to index page 276