HighTechTalks DotNet Forums  

DropDown List Issue

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss DropDown List Issue in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Manoj Paramu Das
 
Posts: n/a

Default DropDown List Issue - 02-10-2005 , 11:49 AM






DropDwonList.SelectedItem.Value returns only the first record value, no
matter when you select. any help would be appreciated.

Thnaks Manoj



Reply With Quote
  #2  
Old   
Peter van der Goes
 
Posts: n/a

Default Re: DropDown List Issue - 02-12-2005 , 08:53 AM







"Manoj Paramu Das" <manojpdas (AT) msn (DOT) com> wrote

Quote:
DropDwonList.SelectedItem.Value returns only the first record value, no
matter when you select. any help would be appreciated.

Thnaks Manoj

Try setting your DropDownList control's AutoPostback property to true, then
try something like this:

Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged


TextBox1.Text = DropDownList1.SelectedValue

End Sub

You'll get the selected value in the text property.


--
Peter [MVP Visual Developer]
Jack of all trades, master of none.




Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.