Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 November 16th, 2006, 07:48 AM
Authorized User
 
Join Date: Oct 2006
Location: Kolkata, West Bengal, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default Duplicate Data IN DROPDOWNLIST.

Hi Frnds,

            I am having two dropdownlist( say A & B). B's content depends on A's Selected Item. At first attempt it's working fine. Now my problem is that when I am returning from B to A, A's data is being duplicated as well as B's content.

            Can you solve this problem??

Thanks

 
Old November 16th, 2006, 01:34 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am sure there is a solution to the problem. However, you have provided insufficient information.
Show us the code.

Woody Z http://www.learntoprogramnow.com
 
Old November 18th, 2006, 05:21 AM
Authorized User
 
Join Date: Aug 2006
Location: Pune, Maharastra, India.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think u r not checking page.ispostback property on form load

all the best





 
Old November 19th, 2006, 06:50 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You must be populating drop down list on page_load but not inside ispostback condtion thats y each time the page is post back the list will be populated with the data again

supose XYZ... is ur code for populating dropdownlist then use this

page_load()
{
   if(!IsPostBack)
   {
      XYZ...
   }
}

hope ur problem cud be resolved with this

Regards,
Rashida
www.akaas.net
 
Old November 22nd, 2006, 05:36 AM
Skb Skb is offline
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Clear the dropdown item list before it loads.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate Data in Form, its Subform and SubSubForm Odeh Naber Access VBA 0 April 17th, 2008 03:01 AM
Duplicate records while inserting the data ebindia0041 .NET Framework 1.x 0 May 23rd, 2007 07:15 PM
prevent duplicate customers when importing data stoneman Access 1 August 6th, 2004 10:31 AM
eliminating duplicate data erin SQL Language 2 April 22nd, 2004 11:49 AM
Avoiding Displaying duplicate data saleaf10 Classic ASP Databases 1 November 26th, 2003 10:16 PM





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