473,385 Members | 1,492 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,385 software developers and data experts.

Help: grid Paging trouble ???

Dear all

I have a datagrid on which I have impement paging
I set proper properties for the grid and add following code in
dbGrid_PageIndexChanged event:
dbGrid.CurrentPageIndex = e.NewPageIndex
dbGrid.DataSource = ds.Tables(0)
dbGrid.DataBind()

When I run my application and click on page 2, the a page_Load event occurs
and then I jump in my dbGrid_pageIndexChanged event.

Problem is that if I click on page 2, nothing happen any more, the page_load
event is not fire and dbGrid_pageIndexChanged either.

It works only once, any idea where is the problem ?

regrards
serge
End Sub
Jan 27 '06 #1
7 963
I don't think you can click twice on the same page number. Have you
tried clicking page 1 ou 3 for example ?

Jan 27 '06 #2
I am not clicking twice on the same number, I am clicking on successive pages
number but nothing happen

"Julien" wrote:
I don't think you can click twice on the same page number. Have you
tried clicking page 1 ou 3 for example ?

Jan 27 '06 #3
Have you checked that on your page, the page numbers are correctly
rendered as link to __doPostBack javascript method ?

Jan 27 '06 #4
Yes there are, otherwise I will never be able to jump at least once to page 2

"Julien" wrote:
Have you checked that on your page, the page numbers are correctly
rendered as link to __doPostBack javascript method ?

Jan 27 '06 #5
And when you click on your buttons the __doPostBack method is fired ?
Does your browser reload ?

Jan 27 '06 #6
it fired only one time

"Julien" wrote:
And when you click on your buttons the __doPostBack method is fired ?
Does your browser reload ?

Jan 27 '06 #7
I find it out...
problem was due to the fact that I have a cache active for the page. If it
so, paging works only once.
"Julien" wrote:
And when you click on your buttons the __doPostBack method is fired ?
Does your browser reload ?

Jan 30 '06 #8

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

Similar topics

4
by: CGuy | last post by:
Hi, I have an ASPX page which has a datagrid and this datagrid is bound to a Custom Collection. sample code this.DataGrid1.DataSource = UserManager.Users; this.DataGrid1.DataBind();
2
by: Joe Au | last post by:
I enable paging on a data grid. But when I click on the page number, nothing happen. Do I have to code something to handle it? Thanks.
4
by: blackhawk | last post by:
I need to build a web page that has to potentially display a large amount of data in two grids on the same page. The HTML file with all of the formatting is about 7MB in size. This is too large...
2
by: Niclas | last post by:
Hi, Is it possible to only show the "Previous Next" paging buttons if the datagrid contains more than the maximum number of items for one page ? Niclas
7
by: Tmuld | last post by:
Hello, I was looking at the example provided on: http://www.4guysfromrolla.com/webtech/072101-1.2.shtml for paging. I am using Visual Studio 2003 - Microsoft Development Environment 2003 ...
2
by: serge calderara | last post by:
Dear all, I have a datagrid where paging has been enables Page number are initialise to 5 Then I am able to click the Next> to more to next records set but when I click on the backwards...
2
by: serge calderara | last post by:
Dear all, I have an asp net 1.1 application with a datagrid bind to a datasource I am using tablemappings features to display column grids name I am using paging features which shows 10 pages at...
0
by: Calvin KD | last post by:
Hi everyone, I'd like to enable users to select/mark multiple rows (records) in my datagrid for deletion. I have provided a checkbox column with a checkbox in the header for "Select All" option....
2
by: dixonjm | last post by:
I have quite a complicated problem with the above. I will do my best to explain, although I have a word doc (too large to attach here 149KB) with the problem explained full with screen shots if any...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...

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.