Re: repost:Response.Redirect problem
- From: "Egil Hogholt" <egilh@xxxxxxxxxxxxx>
- Date: Thu, 13 Apr 2006 21:04:51 +0200
Hi.
ASP.NET sends a 302 "error" to the client with the new url when you call
Response.Redirect. Many older wap devices do not support these redirects.
You can use RedirectToMobilePage() or return a wml page like this to the
client:
<?xml version='1.0'?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN'
'http://www.wapforum.org/DTD/wml_1.1.xml'>
<wml>
<head>
<meta forua='true' http-equiv='Cache-Control' content='max-age=0' />
<meta forua='true' http-equiv='Cache-Control' content='must-revalidate'/>
</head>
<card title=' '>
<onevent type='onenterbackward'><prev /></onevent>
<onevent type='onenterforward'><go href='YOUR-LINK-HERE' /></onevent>
<p></p>
</card>
</wml>
Server.transfer works as it happens internally on the server. ASP.NET
transfer the execution from the current aspx page to another aspx page
without notifing the client.
Cheers,
Egil
http://www.egilh.com/
"sp" <spartacus_001@xxxxxxxxxxx> wrote in message
news:eSx$XUBMGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
Hi;
I am using Mobile ASP.NET v2.0 to develop a mobile accessible site and I
encountered a problem with some of the phones, where Response.Redirect
(behind button click) does not work - Server.Transfer however does work?
Any ideas as to why this is occurring?
Many thanks,
-sp
.
- Prev by Date: Atir Strap 12.0 # Plaxis Pro v8.2 SP4 Build 189 + Dynamics # Tekla Structures (xsteel + concrete) v11.0 # RoboBAT Robot Millennium v19.0.1 # Staad Pro 2005 # CSI SAP2000 v10.0.1
- Next by Date: Re: Execute javascript on button click
- Previous by thread: Atir Strap 12.0 # Plaxis Pro v8.2 SP4 Build 189 + Dynamics # Tekla Structures (xsteel + concrete) v11.0 # RoboBAT Robot Millennium v19.0.1 # Staad Pro 2005 # CSI SAP2000 v10.0.1
- Next by thread: Re: Execute javascript on button click
- Index(es):