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 May 31st, 2005, 01:05 AM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default DropDownList in ASP.NET

Hi friends.

i am using DropDownList as my requirement where in selected index change event of one drop down list box will change the list item in other drop down list.. I have already set autopostback property of the drop down list as true for the one of which selectedindexchanged is to be handled.

Now when i select any item in the list, it is selecting either item with index 0 or 1 or 2 or 4.. but no other item in the list..

please suggest why this happens

thanks for your advice in advance.

Regards
Bhavesh Shura
 
Old May 31st, 2005, 08:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Could you possibly have duplicated values in the dropdownlist? This may cause some weird behaviors.

Brian
 
Old June 1st, 2005, 08:56 AM
Registered User
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am having a problem with dropdown list where selectedindex value doesnt change even after I change the value in the dropdown selection. But it always goes back to whats in the actual table column. Do you know why this could be happening?
pdc

 
Old June 1st, 2005, 09:25 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Not understanding completely, sounds like you have the code in your page load and need to put it in an IF NOT IsPostBack.... END IF.








Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 1.1 dropdownlist problem jjduran ASP.NET 2.0 Basics 1 July 16th, 2006 11:11 PM
ASP.NET 1.1 dropdownlist problem jjduran ASP.NET 2.0 Basics 0 July 9th, 2006 07:04 PM
asp.net dropdownlist cena BOOK: Beginning ASP.NET 1.0 0 March 19th, 2006 01:21 AM
ASP.NET C# Dropdownlist value issue songsan ASP.NET 1.0 and 1.1 Basics 3 January 4th, 2005 08:51 PM
ASP.NET Dropdownlist pvasudevan ASP.NET 1.0 and 1.1 Professional 4 August 31st, 2004 11:21 AM





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