Response.Redirect () in ASP.NET Mobile Application

I am developing a mobile web application using the System.Web.Mobile namespace for ASP.NET. I am facing the problem of redirecting to another aspx page using Response.Redirect () when testing with dotmobi emulators with an error message:

The requested item could not be loaded (status code 502)

+4
source share
3 answers

Try using Server.Transfer istead for response.redirect.

+1
source

Ensure that both aspx pages have the correct set of content types, for example:

<%@ Page ContentType="application/xhtml+xml" %>

As well as:

 Response.ContentType = "application/xhtml+xml" 
0
source

Status code 502: The server acted as a gateway or proxy and received an incorrect response from the upstream server.

Link: Wikipedia

Is the destination page on your website? Does it include calls to external services / other servers?

0
source

All Articles