HighTechTalks DotNet Forums  

selecting item in dropdown list

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss selecting item in dropdown list in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default selecting item in dropdown list - 01-28-2005 , 02:20 AM






hi all
i have bounded a table to dropdown list
it is perfactly working but as soon i select any item from that
dropdown and click any button for event, the first item in the table
will come in the dropdown list.
i want to uue that selected item in my next query but if i do
Label6.Text = DropDownList1.SelectedItem.Text()
it is displaying the first item in the dropdownlist. it is not
displaying the currunt selected item. so please help me out in this
shweta

Reply With Quote
  #2  
Old   
bala
 
Posts: n/a

Default Re: selecting item in dropdown list - 02-05-2005 , 03:34 AM






hi shweta
make the dropdown list autopostback,enableviewstate property true
may be this can solve yr prob
bala
"shweta shah" <shweta_1511 (AT) yahoo (DOT) com> wrote

Quote:
hi all
i have bounded a table to dropdown list
it is perfactly working but as soon i select any item from that
dropdown and click any button for event, the first item in the table
will come in the dropdown list.
i want to uue that selected item in my next query but if i do
Label6.Text = DropDownList1.SelectedItem.Text()
it is displaying the first item in the dropdownlist. it is not
displaying the currunt selected item. so please help me out in this
shweta



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 - 2009, Jelsoft Enterprises Ltd.