Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
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 April 27th, 2005, 08:04 AM
Authorized User
 
Join Date: Jul 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Binding MS Access data to DropDownList

Hi

I bound data from a database using the format:

    Dim strSQL2 as string = "select * from org order by orgname"

    Dim objCommand2 as New OdbcCommand(strSQL2, myConnection2)
    Dim objDataReader2 as OdbcDataReader

        myConnection2.Open()

    objDataReader2 = objCommand2.ExecuteReader(CommandBehavior.CloseCon nection)

        DropDownList5.DataSource = objDataReader2
        DropDownList5.DataTextField = "orgname"
    DropDownList5.DataValueField = "orgname"

        DropDownList5.DataBind()

This works fine if I select < 30 record but anything above and the page OnClick event I have stops working.

Basically I have a form and the dropdownlist provides a list of companies held in a MS Access database. There about 800 companies but I cannot get the DropDownList to handle >= 30 items . Is there a configurable limit? Is there an alternative method to cope with larger results set?

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access: Data Access Page sevp95 Access VBA 0 July 14th, 2008 11:07 AM
MS Data Grid control in ms access application roshla_p Access VBA 5 October 16th, 2006 02:37 AM
Please Help! Ms Access Data Access Pages Iashia06 Access 0 May 4th, 2006 03:29 PM
Binding MS Access data to DropDownList aleahy Classic ASP Basics 1 April 25th, 2005 06:02 PM
Exporting data from MS Excel sheet to Ms Access ajindal General .NET 1 January 17th, 2005 03:00 AM





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