Dictionary<string, string> _dtSource = null;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
test();
GetListInfo();
}
}
private void GetListInfo()
{
this.dtlList.DataSource = _dtSource;
this.dtlList.DataBind();
}
private void test()
{
_dtSource = new Dictionary<string, string>(100);
for(int i=0;i<50;i++)
{
_dtSource[i.ToString()] = i.ToString();
}
}