Identify iphone, ipad and desktop

Hi,

Is there a problem if I put the code to identify the iphone, ipad, ... in the event AfterDispath ?

I have also tried to identify the desktop.
....
if (pos(''iPad'', agent) > 0) then 
begin 
response.SendRedirect(''/ipad/''); 
handled := true; 
end; 

if (pos(''Mozilla'', agent) > 0) then 
begin 
response.SendRedirect(''/desktop/''); 
handled := true; 
end; 


and while in the beforeDispach fails in AfterDispach seems to do well. 

iw 11.0.47

thanks 

I cannot see a problem here using BeforeDispatch with the default IntraWeb version that ships with Delphi.
We could not yet test this with the build IntraWeb 11.0.47, perhaps Atozed changed something in this area. We'll check this.