Lost universe of Programing

USERNAME :- Forum Post:-114
 
HomePortalGalleryRegisterLog in

Share | 
 

 Drop Down List

Go down 
AuthorMessage
Administrator
Admin
Admin
avatar

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

PostSubject: Drop Down List   3/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>
asp:DropDownList>td>
Code for C#
Quote :
Lb_Display.text = DD_SecreteQuestion.SelectedItem.Value gives you the value like 1,2,3 as deffined above
and

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


_________________

""-(`v)-"HACKER OF HEART"-(`v)-"

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: