Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2006, 03:59 PM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
FormView - access DropDownList controls kgaughan ASP.NET 2.0 Basics 0 July 29th, 2008 01:40 PM
Accessing FormView fields LanceRoss ASP.NET 3.5 Basics 9 July 26th, 2008 12:32 PM
Validation controls and FormView templates bpdsmark BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 September 28th, 2006 08:56 AM
Accessing Controls austinf Javascript 0 July 21st, 2006 02:42 AM
How to bind colors to controls in an formview leverell ASP.NET 2.0 Professional 0 May 31st, 2006 02:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.