Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 April 29th, 2005, 10:20 AM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default Can anybody Help me

I am populating a dropdownlist of cities from the table and checking whether the city is matching the value from another table and want to show it as selected item. Here I am not using any numeric identity for the city so I can't use the selectedindex property of dropdownlist.

[We can easily generate code in asp using while and if iterations to display the city that is matching in both table]

I used all the methods of Oledbdatareader and Dropdownlist but it is showing only the index-0 as the selected item.

Can anybody help me to solve the problem?

SK
__________________
Thanks in advance.

Regards,

Senthil Kumar M.
 
Old April 29th, 2005, 11:40 PM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default

Finally I found out a solution by iterating the thing through a for loop with the total count of data in the dropdown list.

Thank you.

SK









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