Groups | Blog | Home
all groups > asp.net mobile > october 2003 >

asp.net mobile : Databind a SelectionList


cjm
10/16/2003 4:16:15 PM
I'm having a problem when I try to set the DataTextField
during a databind on a selectionlist. For some reason
the value that gets set is (0,1,2,3 etc) and not the
value that is set during the databind.


SelectionList.DataSource=array;
SelectionList.DataValueField="somevalue";
SelectionList.DataTextField="somefield";
SelectionList.DataBind();

Has anyone run into this problem or know a work around?

Jim Blizzard [MSFT]
10/22/2003 6:57:15 PM
Hi,

What's in your array? Can you post a sample repro page?

Thanks,
- bliz

Jim Blizzard, MCSD .NET | http://www.snowstormlife.com/blog
Community Developer Evangelist | http://www.microsoft.com/communities

This posting is provided AS IS, without warranty and confers no rights.

[quoted text, click to view]

AddThis Social Bookmark Button