Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
See more:
Hi
when i use update panel with datapager OnPreRender function , and when i click om navigation for exp..

1 2 3 4

i show 25 products on each page,
on first page it shows 1 to 25 ,
when i click 2 , it shows 26 to 50,,,
then again if i click on 1 , it does not show 1 to 25 , instead it shows 26 to 50,,,(it remains on same page)

then if i click 3 , it shows 50 to 75 ...

then again if i click on 1 , it does not show 1 to 25 , instead it shows 50 to 75,,,(it remains on same page)

pls advice
Posted
Comments
JoCodes 4-Feb-14 0:19am    
Add your code to the question
maulikshah1990 4-Feb-14 0:24am    
no..that works if i commented code in page_load as follows..

//if (!Page.IsPostBack)
// {
GridView.DataSource();
GridView.Databind();
//}



but i have other issue... if i use checkbox OnSelectedIndexChanged , page doesnot refresh only gridview refreshes...but if i click a checkbox , and then refresh page manually, ,the checkbox is unchecked , and gridview also...

pls advice
JoCodes 4-Feb-14 0:27am    
But without seeing the code it would be difficult for somebody to findout the issue. It can be a combination of issues too.Also , tell the issue clearly, Why need a full page refresh?Are you using multiple Update Panels,How you are setting the Pageindex for pagination etc
maulikshah1990 4-Feb-14 0:28am    
can u connect by teamviewer or u suggest because it is big code...so its better if you see properly...
JoCodes 4-Feb-14 0:30am    
dont have a TeamViewer, I m working from home :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900