PC Review


Reply
Thread Tools Rate Thread

aspx httphandler messing up my gridview paging postback target

 
 
Matt Winward
Guest
Posts: n/a
 
      29th Feb 2008
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
 
Reply With Quote
 
 
 
 
Matt Winward
Guest
Posts: n/a
 
      5th Mar 2008
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.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView paging - Invalid postback or callback argument Iain Microsoft ASP .NET 1 23rd Nov 2009 03:32 PM
Paging-enabled GridView disappears at postback antonyliu2002@yahoo.com Microsoft ASP .NET 2 31st Jan 2007 03:40 PM
HttpHandler detect which postback event occured =?Utf-8?B?ZGVib3JkZXI=?= Microsoft ASP .NET 2 21st Sep 2006 04:41 PM
How to remove AJAX style postback when paging a gridview. davidjgonzalez@gmail.com Microsoft ASP .NET 1 14th Aug 2006 10:03 AM
HttpHandler to Redirect root Default.aspx =?Utf-8?B?TWlsYW5C?= Microsoft ASP .NET 2 9th Mar 2006 06:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:06 PM.