Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

  #2 (permalink)  
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
  #3 (permalink)  
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





  #4 (permalink)  
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
  #5 (permalink)  
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.