Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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
  #1 (permalink)  
Old October 14th, 2006, 06:41 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default DropDownList

hi guys,

i am using asp.net2.0 in VS2005.

The case i am having is that i have a dropdownlist with a list of values like item one , item two and item three; inside the DB i am storing the values as number not the item name like 1 for item one, 2 for item two and so on.

what i want is that when retrieving the item from the DB i want the displaied name to be the real name which is item one and so on....

how to do that???

please need your help



  #2 (permalink)  
Old October 18th, 2006, 02:21 AM
Authorized User
 
Join Date: Jul 2006
Location: Mumbai, , India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use
dropdownlist.SelectedValue when u want to display DB Retrieved Value
B'coz ur Value in dropdownlist is no and
us Seleted item is Name .

So use dropdownlist.SelectedValue
Hope it help



Similar Threads
Thread Thread Starter Forum Replies Last Post
dropdownlist sumith ASP.NET 1.0 and 1.1 Professional 1 February 23rd, 2007 09:11 AM
DropdownList Venkatesan ASP.NET 1.0 and 1.1 Basics 1 December 11th, 2006 11:03 AM
how to get value from dropdownlist vandat ASP.NET 1.0 and 1.1 Basics 3 November 28th, 2005 12:47 AM
DropDownList chiraagb VS.NET 2002/2003 5 June 15th, 2004 03:12 AM





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