Response.Redirect
creates response from server for previously requested URL. Then, client browser receives this response and just GETs new URL, which server will process with usual 200 result.
So basically:
Request: GET Response.aspx
Response: 302 Default.aspx?mobile=1
Request: GET Default.aspx?mobile=1
Response: 200 <body>
So if I correctly understood your needs - you shouldn't parse mobile
from Request URL, but analyze you Response instead.
Also Response.Redirect
might throw ThreadAbortException
so be careful with several Redirects in the same pipeline.