473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GridView Paging + Atlas

Hello everyone,
I have a gridView on my page that I bind to a dataTable in my code
behind. I know that when I do that I need to implement
pageIndexChanging event for paging functionality to work. I did that
and it works fine. But, the problem is that I use atlas control
updatePanel on my page, when I place gridView in that control, paging
stops working. It does not throw any exceptions. But there is a small
icon in the status bar that there are errors on the page. If anyone
knows what is the problem and how to fix it, I would really appreciate
it.

Oct 5 '06 #1
6 2731
Is your method even getting called, put an alert box in the method call to
see if it is getting fired, something like
Response.Write("<script>alert('fired')</script>"); or the equivalent.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Slavan" <vy*****************@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
Hello everyone,
I have a gridView on my page that I bind to a dataTable in my code
behind. I know that when I do that I need to implement
pageIndexChanging event for paging functionality to work. I did that
and it works fine. But, the problem is that I use atlas control
updatePanel on my page, when I place gridView in that control, paging
stops working. It does not throw any exceptions. But there is a small
icon in the status bar that there are errors on the page. If anyone
knows what is the problem and how to fix it, I would really appreciate
it.

Oct 6 '06 #2
No, my method does not even get called, which is very strange.

Oct 6 '06 #3
Well, that's the problem right there.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Slavan" <vy*****************@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
No, my method does not even get called, which is very strange.

Oct 6 '06 #4
Any ideas why it does not get called? When I remove atlas it gets
called.

Oct 10 '06 #5
post some code that reproduces the problem. See this link to create the
small sample of code. http://www.yoda.arachsys.com/csharp/complete.html

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Slavan" <vy*****************@gmail.comwrote in message
news:11**********************@c28g2000cwb.googlegr oups.com...
Any ideas why it does not get called? When I remove atlas it gets
called.

Oct 10 '06 #6
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="searchTest.aspx.cs" Inherits="searchTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server" id="head1">
</head>
<body>
<form id="form1" runat="server">

<atlas:ScriptManager ID="ScriptManager1" runat="server"
EnablePartialRendering="true" />

<atlas:UpdatePanel runat="server" ID="panel1" Mode="Always"
RenderMode="inline">
<ContentTemplate>
<div id="mainContent">

<asp:Button ID="btnSearch" runat="server" Text="Search"
OnClick="btnSearch_Click" />
<center>
<asp:GridView ID="grdSearch" runat="server"
AllowPaging="true" PageSize="3" AutoGenerateColumns="true"
OnPageIndexChanging="grdSearch_PageIndexChanging" >

</asp:GridView>
</center>
</div>
</ContentTemplate>
</atlas:UpdatePanel>

</form>
</body>
</html>

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class searchTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void btnSearch_Click(object sender, EventArgs e)
{
// getReasons() returns DataTable with two columns
grdSearch.DataSource = generelDAL.getReasons();
grdSearch.DataBind();
}

protected void grdSearch_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
grdSearch.PageIndex = e.NewPageIndex;
grdSearch.DataSource = generelDAL.getReasons();
grdSearch.DataBind();
}
}


Alvin Bruney [MVP] wrote:
post some code that reproduces the problem. See this link to create the
small sample of code. http://www.yoda.arachsys.com/csharp/complete.html
Oct 11 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update...
2
by: | last post by:
Hello, I have a GridView in my ASP.NET 2.0 application that performs the paging feature perfect when I have it bound to a data source. But now I have it bound to a dataset and the paging...
1
by: davidjgonzalez | last post by:
I have a GridView that has paging enabled. Each item (as defined in an ItemTemplate) includes several controls which have operations i would like to Atlas-enable. Everything is working well except...
1
by: jmdolinger | last post by:
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all...
8
by: Greg Lyles | last post by:
Hi all, I'm trying to develop an ASP.NET 2.0 website and am running into some real problems with what I thought would be a relatively simple thing to do. In a nutshell, I'm stuck on trying to...
2
by: antonyliu2002 | last post by:
I've been googling for some time, and could not find the solution to this problem. I am testing the paging feature of gridview. I have a very simple web form on which the user can select a few...
0
by: Don Miller | last post by:
Here is an example of what I believe is a bug in ASP.NET 2.0 GridView paging without postbacks (or at least not documented how to fix it). Once the GridView is displayed, clicking on any of the...
3
by: Ronald S. Cook | last post by:
I was told that if calling lots of records from the database (let's say 100,000), that the GridView's paging feature would automatically "handle" everything. But the 100,000 records are still...
4
by: Don Miller | last post by:
This is a repost of a reproducible problem/bug with GridView with dynamic SQL and binding. Is there a better ASP.NET newsgroup I should post to where MS techs or MVPs take an interest in such...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.