Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview
Paging not working in Gridview Paging not working in Gridview
Paging not working in Gridview
Go Back  Xtreme Visual Basic Talk > > > Paging not working in Gridview


Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2011, 10:46 PM
youngsc youngsc is offline
Centurion
 
Join Date: Oct 2008
Posts: 121
Default Paging not working in Gridview


I'm hoping someone can help me with this, I'm at my wits end. I'll start by saying the weirdest thing, to me at least, is that all this, everything I've tried to now works fine on my local computer. However the second it's uploaded to the website it fails to work.

I've got a gridview that's loaded with a SQLDataSource to start. The user can then make a selection from a combobox to filter the results. As I said this works fine on my local machine and displays the results and pages correctly. When I upload it to the website it no longer retrieves all the rows and the paging stops working.

The gridview is being populated by a seperate sqldatasource that fires in the selectindexchanged. The previous datasource, datasourceid are being cleared before this new one is binded to the gridview.

I thought it was because I wasn't rebinding the gridview on the page load event so I tried that. I've tried adding the dataset to a dataview or session and then rebinding the gridview on postback that way.

As I said it works fine on the local device which makes this more perplexing. In addition the query returns all results correctly when testing the stored procedure and I don't know what else to try.
Reply With Quote
  #2  
Old 04-12-2011, 05:47 PM
youngsc youngsc is offline
Centurion
 
Join Date: Oct 2008
Posts: 121
Default

I don't mean to bump the thread but I'm out of ideas. Has anyone dealt with an instance where everything worked fine on the local but not on the internet? what was the solution?

I've tried dumping all the controls and starting over with a fresh page. I've simplified it to the point of having an sqldatasource that fires when the selected index changes. Once again all this works fine locally, the second I put it on the internet I either get one result or no results.

If you need to see code just let me know, if you have code samples I'd greatly appreciate it. If you have ideas, really anything, I'm at a total loss and since I can't debug the internet I can't even begin to guess what is causing this or where the source lies.

I've got a pageindexchanging event handled and it's working fine locally, can't imagine why it would stop all of a sudden on the web. I've place the following code in the page load event If not IsPostBack Then datagridview.Databind().

I think I've tried 20 different variations, all of which work locally.

Anyone?
Reply With Quote
  #3  
Old 04-12-2011, 07:18 PM
youngsc youngsc is offline
Centurion
 
Join Date: Oct 2008
Posts: 121
Default

Well f*** me it's fixed, thanks to all that considered replying.

Long story short, it seems that the changes I was making were not taking effect right away. I use GoDaddy for hosting always thought it was good, still do, just haven't done something this in depth before to know the "things" to be aware of.

I had been doing a drag and drop and even though I could go into the hosting and see the changes take effect I had suspected they weren't taking effect. I just did a publish from VS, which I forgot about, and it instantly started working.

It's times like this that my laptop is glad I don't own a gun...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview Paging not working in Gridview
Paging not working in Gridview
Paging not working in Gridview
 
Paging not working in Gridview
Paging not working in Gridview
 
-->