Solved

asp.net 1.1

Posted on 2009-04-15
4
219 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:muneerz
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
GiftsonDJohn earned 250 total points
Comment Utility
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
 

Author Comment

by:muneerz
Comment Utility
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
 
LVL 15

Assisted Solution

by:spprivate
spprivate earned 250 total points
Comment Utility
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
 

Author Comment

by:muneerz
Comment Utility
Thanks a lot sir, u r solution worked and rocked my application:) i hope i could give u 2000 points for this
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now