Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > Databound SelectionList Problem

Thread Tools

Databound SelectionList Problem

Posts: n/a

Can somebody help me out??
This is my problem...I have a Databound Selectionlist on my mobile form.

this is how i fill it

SqlDataAdapter1.Fill(DataSet11, "Authors")

The problem is that i do not get the list of selected values on the other
form.I always get "Select a value" which shd be displayed only when there
are no items selected.The code works if i add items without,
when i manually do
<mobile:SelectionList id=AuthorList runat="server" SelectType="CheckBox">
<item text = .../>
</mobile:SelectionList >
I am pretty new to ASP.NET and i have no idea what to do....

This is the code i use to display the selected items on another form.

For Each myitem In AuthorList.Items
If (myitem.Selected) Then

If (Text.Length > 0) Then

Text = Text & Separator

End If

Text = Text & myitem.Text & " : " & myitem.Value

End If


If (Text.Length = 0) Then

Text = "Select a Value"

End If

Label1.Text = Text

ActiveForm = Form2

End Sub

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
databound custom controls vs composite databound custom controls rodchar ASP .Net 0 11-26-2007 03:51 PM
templated databound control problem - not showing databound Manu ASP .Net Web Controls 0 05-22-2006 09:46 AM
SelectionList problem leezard ASP .Net Mobile 1 08-21-2003 10:59 AM
SelectionList Problem Sanjay Sood ASP .Net Mobile 1 08-12-2003 02:00 AM
SelectionList DataValueField problem Brad Wist ASP .Net Mobile 0 07-30-2003 08:35 PM