Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

asp.net 1.1

Posted on 2009-04-15
4
Medium Priority
?
230 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 1000 total points
ID: 24147763
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
ID: 24147883
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 1000 total points
ID: 24147998
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
ID: 24148058
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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

927 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