473,802 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

datagrid paging problem IIS windows 2003 server

Scenario:
ASP 2.0 on XP pro dev machine works fine.

Publishing to windows 2003 server worked OK until I included paging for a
datagrid.

On page load I cal sub binddata

Private Sub binddata()
Dim ds As DataSet = getMydataset()
mydatagrid.Data Source = ds
mydatagrid.Data Bind()
end sub

on mydatagrid_Page IndexChanged:

mydatagrid_Page IndexChanged(.. .) Handles mydatagrid.Page IndexChanged
mydatagrid.Curr entPageIndex = e.NewPageIndex
binddata()
End Sub

What happens:
a) sometimes I get to move to another page OK but get error on navigating to
another
b) timeout errors

Any clue? If I give up datagrid paging everything works fine on server 2003.
On XP dev machine no problem. Both access same SQL server 2000 database.

Best regards,
Manuel Alves
Apr 4 '06 #1
4 1201
Manuel,

I've noticed strange behaviour on machines that don't have all the updates
installed on them. Are all the updates installed on the machine your are
pulling the site up in?

Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Manuel Alves" <mj**@newsgroup s.nospam> wrote in message
news:uZ******** ******@TK2MSFTN GP14.phx.gbl...
Scenario:
ASP 2.0 on XP pro dev machine works fine.

Publishing to windows 2003 server worked OK until I included paging for a
datagrid.

On page load I cal sub binddata

Private Sub binddata()
Dim ds As DataSet = getMydataset()
mydatagrid.Data Source = ds
mydatagrid.Data Bind()
end sub

on mydatagrid_Page IndexChanged:

mydatagrid_Page IndexChanged(.. .) Handles mydatagrid.Page IndexChanged
mydatagrid.Curr entPageIndex = e.NewPageIndex
binddata()
End Sub

What happens:
a) sometimes I get to move to another page OK but get error on navigating
to another
b) timeout errors

Any clue? If I give up datagrid paging everything works fine on server
2003. On XP dev machine no problem. Both access same SQL server 2000
database.

Best regards,
Manuel Alves

Apr 4 '06 #2
Hi Manuel,

I think you can have a look at Justin's suggestion. Also, based on the code
snippet you provded, it doesn't look like a code logic issue, likely a
environment specific problem. Have you tried running the same application
on other server machine(with paging turn on) to see whether the problem
remains?

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 5 '06 #3
Thank you. Moving to another server solved the problem.

The machine I was publishing to was a server 2003 upgraded from win srv
2000. It has all the fixes and framework 2.0 EXCEPT .NET Framework 1.0
Service Pack 3 that always failed to install no matter what I tried.

Once again, thanks to you both for your prompt and usefull response.

Best regards,
Manuel Alves
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:gG******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi Manuel,

I think you can have a look at Justin's suggestion. Also, based on the
code
snippet you provded, it doesn't look like a code logic issue, likely a
environment specific problem. Have you tried running the same application
on other server machine(with paging turn on) to see whether the problem
remains?

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 5 '06 #4
You're welcome Manuel,

Glad to be of assistance.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 5 '06 #5

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

Similar topics

1
4780
by: MJB | last post by:
I have a windows application that returns 10s of thousands of rows to a DataGrid (for all intents and purposes you can assume that it's a DataGrid, I'm actually using the Infragistics UltraWinGrid though). Due to the ever growing amount of data I want to implement some sort of record paging. There are a lot of examples for ASP.Net but not many for windows applications. I am planning to use some of the techniques used for ASP.Net, but I...
2
2676
by: Carolyn Vo | last post by:
I have been looking and looking but can't seem to find out how to get the row selected in a web control datagrid (NOT a web form datagrid!!!), and how to highlight the selected row. I'm sure this question comes up all the time but I can't find the solution(s) anywhere. From what I understand, the web control datagrid doesn't have any row selected or row highlighting capabilities. What kind of hack am I going to have to put into place?...
2
2263
by: enak | last post by:
I can not get my datagrid to page. I have a datagrid that I can sort 2 of the columns. This works great. I added paging and when I display the dg it shows 5 pages. (I am showing page numbers at the bottom of the dg.) When I click on the pages nothing happens until I get to the last page. Then and only then is the last page displayed. If I go back through the pages the second to last page displayes the first page again.
1
1873
by: Christopher Pragash | last post by:
Hello All I am having a pretty wired problem...I am writing a web part (SPS 2003) that uses a Datagrid. In the web part, I create the datagird assign some properties and add event handlers for paging and sorting using AddHandler. While browsing, I sort the grid and do paging, it works fine for increasing page numbers...ie if I go from 1 - to - 2 - to - 3 the sort is maintained and the paging works fine. If I come back to page 2 from page...
5
1710
by: Patrick.O.Ige | last post by:
Hi Guys, I have a datagrid wit editing and updating. But after adding Paging IT WON'T PAGE!! It compiles well but when i click on the paging link it doesn't go to the next link.. When i remove AllowCutomPaging it gives error:- "AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid with ID MenuGrid when AllowPaging is set to true and the selected datasource does not implement ICollection"
6
1816
by: Shawn | last post by:
Hi. I already have a datagrid where I'm using paging. I have a stored procedure that fills a temp table with 200-500 rows and then sends back 10 records at the time. When I go to page 2 the SP fills the temp table again and returns rows 10-19. The temp table is dropped after each call to the SP, so it has to be created and filled every time the user changes page in the datagrid. My question is this: Would it be more efficient to...
5
2796
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go to the database to get the next page. Is there a way to use the dataset to allow us to read back and forth in it instead of going back to the database to get it? Thanks,
2
2216
by: Cindy | last post by:
Hello. For some reason, I am able to "connect" to the Northwind database whenever I use the wizard; however, when I run the application, my datagrid does not display. Here are the exact steps I am taking to try to get this to run: 1)New Project -->ASP.NET Application 2) From the Server Explorer, drag the Northwind Employees table onto the WebForm1.aspx design view. SqlConnection1 and SqlDataAdapter1 are created. 3) From the Toolbox,...
0
1661
by: webaccess | last post by:
Hi Friends ..!! I want to use datagrid/dataview control to data in tablular format,also I want to add paging and format the data of table column. Problem is data is coming from API Dom in as XML source. Now to display data i hv use dataset to fetch data.so i m displaying data in datagrid/dataview. Now here comes a problem: Using Datagrid :
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10305
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.