Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 January 17th, 2007, 08:40 AM
Registered User
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regarding DropDown Lists in Asp.Net

This is the Senario of m program.
-->I have a datagrid in which i has 2 dropdownlists.. i have a button outside the grid which creates a new row in the grid with its default value if we click it.
-->while adding a new row the first dropdown list is populating with the values.. and the second ddl is populating basing on the value selected in the first ddl.
-->some times it is showing an error like drop down lists cannot have multiple items selected
-->i am using sessions while adding the rows i.e., i am using datatable and copied all the grid values into the datatable and then updating the session with the datatable.
-->This error is occuring sometimes only


Thanks and Regards
Old January 17th, 2007, 09:16 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Somewhere in your code you are calling dropdownlist.selectedIndex = n or .selectedItem.Value/Text = n more then once on your ddl.

I will only tell you how to do it, not do it for you.------------
Unless, of course, you want to hire me to do work for you.---
^^Thats my signature--------------------------------------
http://www.catb.org/~esr/faqs/smart-questions.html -------
^^Took that from planoie's profile--------------------------

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linked Dropdown Lists contagiouss_blue Beginning VB 6 1 June 8th, 2005 10:35 AM
Page Linking though DropDown Lists mahulda ASP.NET 1.0 and 1.1 Basics 2 April 23rd, 2004 02:58 PM
dependent dropdown lists vivshah VS.NET 2002/2003 1 March 29th, 2004 05:25 PM
2 tables and 2 dropdown lists collie Classic ASP Databases 0 October 20th, 2003 07:20 AM

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