p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Professional (http://p2p.wrox.com/forumdisplay.php?f=57)
-   -   Duplicate Data IN DROPDOWNLIST. (http://p2p.wrox.com/showthread.php?t=50366)

prasanta2expert November 16th, 2006 07:48 AM

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


woodyz November 16th, 2006 01:34 PM

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

Laxmikant_it November 18th, 2006 05:21 AM

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

all the best






iamrashida83 November 19th, 2006 06:50 AM

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

Skb November 22nd, 2006 05:36 AM

Clear the dropdown item list before it loads.



All times are GMT -4. The time now is 02:57 PM.

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