It would be possible to use an array of arrays as data source (but not a two dimensional array), but you would have to arrange it the other way arround, so that each inner array would contain a name and a number.
I would prefer a more OOP approach though, it gives a bit more structure and the repeater code gets a lot cleaner:
Create a class for the month information:
public class MonthInfo {
public string Name { get; private set; }
public string Number { get; private set; }
public MonthInfo(string name, string number) {
Name = name;
Number = number;
}
}
Now you can create an array of objects to use as data source for the repeater:
MonthInfo[] months = {
new MonthInfo("Januari", "01"),
new MonthInfo("Februari", "02"),
new MonthInfo("Mars", "03"),
new MonthInfo("April", "04"), // inte "Apri" ;)
new MonthInfo("Maj", "05"),
new MonthInfo("Juni", "06"),
new MonthInfo("Juli", "07"),
new MonthInfo("Augusti", "08"), // inte "Agusti" ;)
new MonthInfo("September", "09"),
new MonthInfo("Oktober", "10"), // kommer före november ;)
new MonthInfo("November", "11"),
new MonthInfo("December", "12")
};
MonthRepeater.DataSource = months;
In the repeater you use the properties of the month info class:
<asp:Repeater runat="server" id="MonthRepeater">
<ItemTemplate>
<a href="Default.aspx?m=<%#Eval("Number")>"%><%#Eval("Name")%></a>
</ItemTemplate>
</asp:Repeater">