Lost universe of Programing

USERNAME :- Forum Post:-114
HomePortalGalleryRegisterLog in


 Drop Down List

Go down 

Number of posts : 160
Age : 33
Location : Lucknow
Job/hobbies : Software Engeener
What U like To do ? : Because Its Rock with me.
Registration date : 2008-01-06

Drop Down List Empty
PostSubject: Drop Down List   Drop Down List I_icon_minitime3/1/2008, 10:09 pm

Drop down list , In Drop down List you first have to add the Number of Elements in the list and this can be added in the list as follows
Quote :

asp:DropDownList ID="DD_SecreteQuestion" runat="server">
<asp:ListItem Text ="SELECT THE SECRETE QUESTION" Value ="0">asp:ListItem>
<asp:ListItem Text ="What Is you Mother Name ?" value="1">asp:ListItem>
<asp:ListItem Text = "What Is your Nick Name ?" Value ="2">asp:ListItem>
<asp:ListItem Text ="who Is your ChildHood Hero ?" value ="3">asp:ListItem>
<asp:ListItem Text ="Who Is your Favorate Actoress ?" Value="4">asp:ListItem>
Code for C#
Quote :
Lb_Display.text = DD_SecreteQuestion.SelectedItem.Value gives you the value like 1,2,3 as deffined above

Lb_Display.text = DD_SecreteQuestion.SelectedItem.Text will give you the value of the text


""-(`v)-"HACKER OF HEART"-(`v)-"
Drop Down List Earth10
Back to top Go down
View user profile http://aspx.forumotion.com
Drop Down List
Back to top 
Page 1 of 1
 Similar topics
» Robinson's raft & Bits of plane drop rate
» Prime Drop Locations
» Add your banner to the official Forum banners list
» Orions Magical Wokshop ITEM LIST
» SCCT Auto232 Rating List-Houdini 2.0 Pro x64 1c

Permissions in this forum:You cannot reply to topics in this forum
Lost universe of Programing :: --=| SOURCE CODE |=-- :: CODE FOR C# & ASP.NET-
Jump to: