修改的數字我有一個變量大獎賽返回5998 7510 8144 9458 10916 13214
和這個名單必須改變59,98 75,10 81,44 94,58 109,16 132,14
我怎樣才能做到這一點。也就是說,最後的2個位數(右一)每個數字的前面加上,
?在列表
這是C#代碼到目前爲止,我已經試過:
XDocument docxx = XDocument.Parse(Session["xmlrs" + z + ""].ToString());
//This now holds the set of all elements named field
try
{
XNamespace foobar = "http://www.april-technologies.com";
var prix = docxx.Descendants(foobar + "CotisationMensuelle").Select(x => new { CotisationMensuelle =(string)x}).ToList();
rpMyRepeater1.DataSource = prix;
rpMyRepeater1.DataBind();
}
catch(Exception ex) {}
和C#代碼是:
<asp:Repeater ID="rpMyRepeater1" ItemType="" runat="server">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "CotisationMensuelle").ToString() %>
<br />
</ItemTemplate>
</asp:Repeater>
在這一點在此代碼是你真正嘗試添加的號碼之間的逗號? –
最後兩位數字(右起) – user3030806