I am new to asp.net.
I use a repeater in my code and i want to use the result of the repeater as text to a single textbox.
The repeater code is the following:
<asp:Repeater ID="rptMarkers" runat="server">
<ItemTemplate>
[
<%# Eval("lat")%>,
<%# Eval("long") %>,
'<%# Eval("city")%>'
]
</ItemTemplate>
<SeparatorTemplate>
,
</SeparatorTemplate>
</asp:Repeater>
The result of the repeater is something like this:
[ 38,1413580155577, 23,761239052, 'Athens' ] , [ 38,1199989318848, 23,742678165, 'Athens' ]
and I want this row result to be written in a single textbox.text
. Is that possible?
What about do it in code-behind without repeater? I assume that your markers can be iterated, so you can do something like this (using LINQ):