I am using a repeater control to get data like this
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="CountrySource">
<ItemTemplate>
[' <%#DataBinder.Eval(Container.DataItem, "Country")%> ',
<%#DataBinder.Eval(Container.DataItem, "Sales")%> ],
</ItemTemplate>
</asp:Repeater>
Result is as follows
['US', 100 ], ['UK', 300 ], ['Spain', 400 ],
However, the last comma above is not necessary in HTML and is causing error on my HTML page.
How to change my code in aspx to get rid of the last comma.
ie now
['US', 100 ], ['UK', 300 ], ['Spain', 400 ], Go to the complete details ...