Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 September 7th, 2004, 03:32 PM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Checkbox List

I have a checkbox list that is created based on a stored procdeure.
This works fine. I want to check off the boxes based on the values returned by another stored procedure.

Here is the code that I have tried using:
Dim check As DataRow = DS_SectionEnrollmentTypes1.Tables("sp_Get_Section_ Enrollment_Types").Rows(0)

  For i = 0 To CB_EnrollmentTypes.Items.Count - 1
            CB_EnrollmentTypes.Items(i).Selected = False
            If CB_EnrollmentTypes.Items(i).Text = check("codes") Then
                CB_EnrollmentTypes.Items(i).Selected = True
            End If
        Next


But all it ever does is check off the first box.

HELP!

 
Old September 8th, 2004, 09:55 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Figured it out. Don't worry about it






Similar Threads
Thread Thread Starter Forum Replies Last Post
checkbox checked by default by html:checkbox sachin.tathod Struts 3 December 4th, 2006 03:41 PM
fill dropdown list with items when parent list isaac_cm Pro PHP 1 July 10th, 2006 05:41 AM
Listbox (checkbox list) Problem CraigJones ASP.NET 1.0 and 1.1 Basics 1 November 10th, 2005 07:01 AM
Checkbox list validation lily611 General .NET 6 December 10th, 2004 03:33 AM





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