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 July 19th, 2008, 07:04 PM
Registered User
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Perplexed noob

Hi everybody!

I just started playing with the ASP.net. I'm trying to make a simple application in which the user selects an item from DropDownList and clicks on "submit",then rest of it's details are shown.

I've used two dataAdapters and 2 datasets to do that. But, I'm facing two problems. Whenever i select something from the dropDownlist, it always get to the first one in the list and shows it's details in the grid(even if i select the second one!)

Here is my ASP.net project
http://rapidshare.com/files/13099024...tion9.rar.html

and the sample access database. I had put it in the D:'s root directory
http://rapidshare.com/files/13099040...base1.mdb.html

Please help me guys! :(

 
Old July 21st, 2008, 09:19 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you post some of the relevant code?

I'll make a guess: Are you databinding the dropdown lists? Are you doing this only once when required (i.e. page_load on first page hit by checking IsPostback, and once when the DDL changes)? If you databind the DDL every time, this typically results in erroneous behavior such as you describe.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help a noob wilbo BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 April 22nd, 2008 11:54 AM
noob question mattl Java Basics 1 August 27th, 2007 11:28 PM
Noob Needs Help -XM- BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 June 28th, 2007 04:53 PM
Noob needs help. dangel75 BOOK: Beginning ASP.NET 1.0 3 March 19th, 2006 06:38 PM
Noob Question jverdin BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 April 2nd, 2004 10:01 AM





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