need to click twice on pager to navigate

G

goldenrate

Hey Everyone,

I recently added the ASP:pager to a ListView. Everything is working fine
with the pager except that it takes 2 clicks to navigate between the pages.

Any ideas?

thanks,
David
 
A

Alexey Smirnov

Hey Everyone,

I recently added the ASP:pager to a ListView. Everything is working fine
with the pager except that it takes 2 clicks to navigate between the pages.

Any ideas?

thanks,
David

Try to put following code at OnPreRender method

protected void ListView1_PreRender(object sender, EventArgs e)
{
//your method for binding here
}

to rebind your source to listview.
 
G

goldenrate

Alexey Smirnov said:
Try to put following code at OnPreRender method

protected void ListView1_PreRender(object sender, EventArgs e)
{
//your method for binding here
}

to rebind your source to listview.


Hey Alexey,
Thank you for your reply, but unfortunately it didn't work. That is, the
list view didn't show data at all. I'd love to hear more ideas if you have
some.
 
G

goldenrate

Actually it works now thanks to your advice. I have just noticed that I did
something stupid in somewhere else in the code (sometimes I can be really
stupid). I removed it and it's working fine now :)

Cheers!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top