|
-
Aug 10th, 2005, 09:40 PM
#1
Thread Starter
Lively Member
-
Aug 13th, 2005, 03:05 AM
#2
Hyperactive Member
Re: add items in my dropdownlist???
Try this out, the text displayed and the value returned will be the same.
VB Code:
<asp: DropDownList
ID="infoDrop"
Runat="server">
<asp:ListItem Text="TestData1" />
<asp:ListItem Text="TestData2" />
<asp:ListItem Text="TestData3" />
</asp: DropDownList>
If you want a different value to be returned you have to assign your value as well:
VB Code:
<asp: DropDownList
ID="infoDrop"
Runat="server">
<asp:ListItem Text="TestData1" Vaule="data1" />
<asp:ListItem Text="TestData2" Value="data2"/>
<asp:ListItem Text="TestData3" VAule="data3"/>
</asp: DropDownList>
-
Aug 13th, 2005, 08:09 PM
#3
Frenzied Member
Re: add items in my dropdownlist???
Make sure you don't just copy and paste Tinbeard's code and wonder why it's not working. 'Value' is spelled incorrectly on two of the three lines on which it appears.
-
Aug 15th, 2005, 02:56 AM
#4
Thread Starter
Lively Member
Re: add items in my dropdownlist???
-
Aug 16th, 2005, 10:04 AM
#5
Hyperactive Member
Re: add items in my dropdownlist???
note to self....... don't reply to threads when tired
sorry for not being vigilent.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|