我如何用中继器写出我的数组?
string[,] month = { {"Januari", "Februari", "Mars", "Apri", "Maj", "Juni", "Juli", "Agusti", "September", "November", "Oktober", "December"},
{"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"}
};
现在我可以使用 Container.DataItem,但是如何在一个地方获取第一个项目字符串,在另一个地方获取第二个项目字符串?
<a href="Default.aspx?m=01">Januari</a>
最佳答案
看起来你应该在这种情况下使用枚举......即......
enum Month = {January=1, February, March};
Month month = Month.January;
Month alsomonth = (Month)(1); // Should work
关于c# - 字符串 [,] 和中继器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/997949/