Ask a Question related to ASP.NET General, Design and Development.
-
Christof Nordiek #1
DataBinding with Array
I've got following problem:
I need to present an Array of strings and want to Present it in an
DataRepeater.
the Code is like this (in C#):
string[] NameList = SomeClass.GetNameList();
MyRepeater.DataSource = NameList;
Now I don't know, how I con declare the databinding, it should be something
like this:
<asp:repeater id="MyRepeater" runat="server">
<ItemTemplate>
.....
<asp:Label Text='<%# DataBinder.Eval(Container.DataItem, ???? ) %>
/>
......
</ItemTemplate>
......
</asp:repeater>
Thanks
cn
Christof Nordiek Guest
-
Combobox databinding
Any ideas on this problem I'm having. I've got a combobox and trying to bind data. The combobox looks like: <mx:ComboBox y="25"... -
databinding
have two Dropdownlist and one which is containing States and one containing Cities. I know how to do all the little databinding task in visual... -
Databinding array of custom classes to DataGrid
I can't seem to bind an array of custom classes to my DataGrid. I get the following error "A field or property with the name 'dcAbbreviation' was... -
DataGrid Custom Column Error when DataBinding "does not contain a definition for 'DataBinding'"
I am creating a custom column that inherits from DataColumnGrid. When I attempt Databind to a property of the custom column, I get the the error: ... -
MX2004 and databinding.
Hi, I haven't really used Flash since version 5; it was slow to develop in, and I could create web apps much more quickly in HTML/CSS. How is the... -
Marina #2
Re: DataBinding with Array
Try using just <%# Container.DataItem %>
"Christof Nordiek" <cnordiek@amexus.com> wrote in message
news:bds9ur$67q$04$1@news.t-online.com...something> I've got following problem:
> I need to present an Array of strings and want to Present it in an
> DataRepeater.
> the Code is like this (in C#):
>
> string[] NameList = SomeClass.GetNameList();
> MyRepeater.DataSource = NameList;
>
> Now I don't know, how I con declare the databinding, it should be%>> like this:
>
> <asp:repeater id="MyRepeater" runat="server">
> <ItemTemplate>
> .....
> <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, ???? )> />
> ......
> </ItemTemplate>
> ......
> </asp:repeater>
>
> Thanks
> cn
>
>
Marina Guest



Reply With Quote

