Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

aspx httphandler messing up my gridview paging postback target

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt Winward - 29 Feb 2008 09:33 GMT
Hi all.

I've got a little problem with my gridview paging and I'm not sure how
to resolve it.

Basically, I'm handling all aspx requests with my own httphandler.
This does a url rewrite, so the url you see is not the page that is
actually returned. To add to the complexity, I have a module which
does a similar url rewrite at a higher level.

So, this url

==> domain.com/CustomerName/Default.aspx

is handled by the module, which uses Server.TransferRequest to load

==> domain.com/WebApplication/CustomerName/Default.aspx

and, in turn, a handler within the web app actually loads something
like this...

==> domain.com/WebApplication/Default.aspx?customer=x

The problem is that I have a paging gridview control in an updatepanel
in Default.aspx and it's doing a postback to /Default.aspx (ie at the
site root), which doesn't exist, so it throws a 404 and this manifests
itself as the following javascript error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error
occurred while processing the request on the server. The status code
returned from the server was: 404.

I need it to postback to either of the three url formats above. Any of
them should work fine. Just getting rid of the / at the beginning of
the target should fix it... but I can't find a way to change its
target.

Is there a way to do this? Custom paging perhaps?

Thanks,

Matt
Matt Winward - 05 Mar 2008 12:18 GMT
In case anyone is interested, I couldn't find a way to solve the
paging postback issue, so I've ended up writing my own webcontrol that
using postbacks to load the data from a web service.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.