Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
1.44/5 (3 votes)
See more:
hi,
i have grdview into update panel and paging not work for me this is part of my code


<asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="19" EnableSortingAndPagingCallbacks="false">
Posted
Comments
hypermellow 20-May-15 7:40am    
What does not working mean?
You've posted a just a snippet of markup - even if you did explain what problems you are having - it's not much to go on for anyone to provide you with help.

... post your code please!
aarif moh shaikh 20-May-15 7:45am    
Paste your all code .. Please
Sinisa Hajnal 20-May-15 8:50am    
AjaxToolkit callbacks are unreliable within update panels.
Member 11573837 20-May-15 9:11am    
hello everybody,
i'm sorry for my bad paste
whene i want to move to another page don't work, like i clicking on 2 doesn't take me to the second page

the code wich i bind the gridview is

Module.DS.Clear();
Module.Connecter();
string req = "select time_tag as ' ',[ain_sebou|Niveau],[ain_sebou|Pluie1Hr],[azzaba|Niveau]from QTSW_DATA1 where time_tag between ('20/12/2014 12:06:43') AND ('20/05/2015 12:06:43')";
SqlDataAdapter da = new SqlDataAdapter(req, con);
da.Fill(Module.DS, "DDDD");
Module.Deconnecter();

GridView1.DataSource = Module.DS.Tables["DDDD"];
GridView1.DataBind();
Member 11573837 20-May-15 9:12am    
and for page.aspx

<asp:ScriptManager ID="ScriptManager1" runat="server">

<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<contenttemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="19" EnableSortingAndPagingCallbacks="false" OnPageIndexChanging="GridView1_PageIndexChanging">


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