asp.net 1.1

How to call the one column data from database and store it on a database after selecting the values
How to call the one column data from database and store it on a database after selecting the values in asp.net web page 
 
iam able to call the data into dropdown list but when iam selecting other dropdownlist it is showing the firt index and even after selecting the correct index it storing the value of 1st index by default, any help where iam going wrong

Open in new window

muneerzAsked:
Who is Participating?
 
GiftsonDJohnCommented:
Hi

I am not clear about your 1st question

The answer for your second question is, make sure you are not rebinding the dropdown values on the page load while on the post back of the page.
0
 
muneerzAuthor Commented:
Yeah, as soon as the page load , iam able to see the data from database in my 1stdropdownlist , when iam selecting other dropdownlist2 value the 1stdropdownlist1 is again showing the 1st index

example if i have following values in 1stdropdownlist:
Number 1
Number 2
Number 3

 after selecting Number 2 in 1stdropdownlist when iam selecting other value in dropdownlist2 the 1stdropdownlist1  is showing me Number 1--help me..
0
 
spprivateCommented:
See if you have enable view state set to true in the control.
Also make sure you are loading data to control only once .ie check for ispostback=false before you populate the 1st dropdown
0
 
muneerzAuthor Commented:
Thanks a lot sir, u r solution worked and rocked my application:) i hope i could give u 2000 points for this
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.