Hello,
I am trying to do paging and Virtual Earth on the same page. I want to have the ten results on each page mapped with Virtual Earth. I can't figure out how to go through the results a second time so I can add them to the Virtual earth map. Is their a way to iterate through the paged datasource twice so I can map my locations as well. Right now I am doing my paging like this in C#:
void doPaging()
{
pagedData.DataS ource = getTheData().De faultView;
pagedData.Allow Paging = true;
pagedData.PageS ize = 10;
try
{
pagedData.Curre ntPageIndex = Int32.Parse(Req uest["Page"].ToString());
}
catch (Exception ex)
{
pagedData.Curre ntPageIndex = 0;
}
theDataList.Dat aSource = pagedData;
theDataList.Dat aBind();
// Current Page Number
pageNumber.Text = ((pagedData.Cur rentPageIndex) + (1)).ToString() ;
}
I am trying to do paging and Virtual Earth on the same page. I want to have the ten results on each page mapped with Virtual Earth. I can't figure out how to go through the results a second time so I can add them to the Virtual earth map. Is their a way to iterate through the paged datasource twice so I can map my locations as well. Right now I am doing my paging like this in C#:
void doPaging()
{
pagedData.DataS ource = getTheData().De faultView;
pagedData.Allow Paging = true;
pagedData.PageS ize = 10;
try
{
pagedData.Curre ntPageIndex = Int32.Parse(Req uest["Page"].ToString());
}
catch (Exception ex)
{
pagedData.Curre ntPageIndex = 0;
}
theDataList.Dat aSource = pagedData;
theDataList.Dat aBind();
// Current Page Number
pageNumber.Text = ((pagedData.Cur rentPageIndex) + (1)).ToString() ;
}