Wrox Programmer Forums
|
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 9th, 2006, 04:33 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dropdownlist Problem

Hi All

I have two dropdownlist.first is ddl_category and second is ddl_op

when i select value from ddl_category i want to set this value into ddl_op.

declare str

str=ddl_Category.Selectedvalue.text

I write ddl_op.selectedItem.Text=str

But it's not working.I am not getting exact problem.What happened in this situation?Can u help me how to write and assign value in dropdownlist in aspx page?

Thanks
monika





 
Old November 9th, 2006, 05:34 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi

That's not a big issue, just clarify a few points and we would provide the resolution:

1. Is the second dropdownlist empty, i.e. no items are there and you want to add the selected item from the first dropdown to the second.

2. Does the second dropdown contain the same items as first, and you want to set the selectedindex of second in correspondance to the item selected from first dropdownlist.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old November 11th, 2006, 09:24 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It might be PostBack problem.
check whether u've assigned data of both dropdownlist, is executed once

Bijgupt





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in dropdownlist premnaath ASP.NET 2.0 Professional 2 November 29th, 2007 10:01 AM
DropDownList Problem cmw231 ASP.NET 2.0 Professional 0 July 14th, 2006 08:44 AM
Problem with dropdownlist somnath.kartic ASP.NET 1.0 and 1.1 Basics 3 February 8th, 2006 01:59 AM
dropdownlist problem naresh.net ASP.NET 1.0 and 1.1 Basics 4 July 7th, 2005 01:22 AM





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