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
 
G

Guest

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

Anon User 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

Members online

No members online now.

Forum statistics

Threads
474,082
Messages
2,570,589
Members
47,212
Latest member
JaydenBail

Latest Threads

Top