We help IT Professionals succeed at work.

Paging a Gridview, Pathing Problems?

directxBOB
directxBOB asked
on
Medium Priority
250 Views
Last Modified: 2012-08-13
I have the following structure for my site:

Root
-Customers
-Images
-CSS
-JS

Within the root directory I hold all the generic pages and when a user logs in I redirect to the customers page eg:

./Customers/Report1.aspx

Where the customer may have some specific content which cannot be used by everyone.

The problem I have just encounterd is when I enable paging on the report and I select the page It gives me an Error 404 as it's looking for:

./Report1.aspx

I have a rather unique website as I am using UFrame :
http://www.codeplex.com/UFrame

Which pulls in exteral pages and wraps them into Div Tags. Perhaps this is the issue, but I just wanted to confirm if anyone might know why paging on a gridview may try and point to the root location.

Comment
Watch Question

Paging on a gridview should post back to itself.  Something like:

<a href="javascript:__doPostBack('GridView1','Page$2')">2</a>

It probably has something to do with the UFrame.  You could try setting the <base href='/customer"> in the report1 page and see if it changes anything.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.