views:

66

answers:

2

Hi all,

I have a listview control and a datapager control in a ascx page, this is then embedded in the aspx page.

When my page loads the records come up, and the page numbers appear in the pager, however, when I click on any of the page numbers, the page is always blank, no records.

Are there any known issues with the pager in a usercontrol?

Any advice appreciated.

Regards Melt

+1  A: 

I have had the same problem today. Your question is not very clear, tho i can maybe give a hint by telling you that you have to databind again when your page reloads.

Younes
Hi, I just tried that using the following code in the Page_load of the ascx page, but it hasn't worked, records are still not being returned when I click the page numbersthis.ListView1.DataSourceID = "SqlDataSource1";this.ListView1.DataBind();also triedthis.ListView1.DataSource = SqlDataSource1;this.ListView1.DataBind();
Melt
A: 

Still looking for an answer to this problem if anyone has any other ideas please.

Thanks

Melt