Please help, can i redirect different mobile page to pocket pc?? coz some of the old mobile phones cannot support the mobile control checkbox. i want to redirect the page to Pocket PC which can support it. Many thanx.
Actually, my question is how to redirect different mobile web page according to different mobile devices when user browse my mobile web site. E.g. if i goto url http://www.mymobilesite.com using PocketPC, it will redirect to http://www.mymobile.com/pocketpc/
using normal phone.E.g. motorola T720 hand phone , it will redirect to http://www.mymobile.com/motorola/ What is the device specific for conventional mobile phone and PocketPC or PDA??
response.redirect code doesn't work at this code.
To solve this problem u must delete "<httpRuntime useFullyQualifiedRedirectUrl = "true" />" this code from web.config file.
if u add this , it doesn't work.
(I know that Microsoft says add this code to web.config file.But if u add this,there is a problem with redirecting.)
And the second problem;
This code doesn't work at some of the mobile phones.
So u have to change the
(
<identification>
<capability name="majorversion" match="^[5-9]" />
</identification>
)
majorversion in the file.
change 5-9 to 4-9
<capability name="majorversion" match="^[4-9]" />
U can find the file to change in "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG"
this path.
PDAImagesASP.NET 1.1ASP.NET 2.0ASPXWindows MobileWindows CEbody tagatributesiisvs2005.Net 2.0.NET 1.1JavaScriptXMLHttpRequestAjaxInternet Explorer MobileASP.NETASP.NET Mobile ControlsJScriptBackColorredirectionloginVisual Studio 2005mobile asp.netASP.NET AJAXWindows Mobile 6UpdatePanel
hikaru7
Member
25 Points
5 Posts
How to redirect mobile page between mobile phones and Pocket PC
Jun 02, 2004 05:08 PM|LINK
MobileMagic
Member
605 Points
121 Posts
Re: How to redirect mobile page between mobile phones and Pocket PC
Jun 03, 2004 09:46 AM|LINK
Microsoft MVP|Author|Arch
www.dotnetforce.com
Force Behind .NET
_________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
hikaru7
Member
25 Points
5 Posts
Re: How to redirect mobile page between mobile phones and Pocket PC
Jun 09, 2004 10:59 AM|LINK
MobileMagic
Member
605 Points
121 Posts
Re: How to redirect mobile page between mobile phones and Pocket PC
Jun 09, 2004 11:21 AM|LINK
Microsoft MVP|Author|Arch
www.dotnetforce.com
Force Behind .NET
_________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
umitgunden
Member
4 Points
2 Posts
Re: How to redirect mobile page between mobile phones and Pocket PC
Dec 03, 2007 07:33 AM|LINK
hi
u can use these codes to redirect a page to an ASP.NET Mobile Web Page .
http://msdn2.microsoft.com/en-us/library/fhhycabe.aspx
There are some problems here.
<script runat="server" language="c#">
public void Page_Load(Object sender, EventArgs e)
{
if (Request.Browser["IsMobileDevice"] == "true" )
{
Response.Redirect("MobileDefault.aspx");
}
else
{
Response.Redirect("DesktopDefault.aspx");
}
}
</script>
<configuration>
<system.web>
<httpRuntime useFullyQualifiedRedirectUrl = "true" />
</system.web>
</configuration>
response.redirect code doesn't work at this code.
To solve this problem u must delete "<httpRuntime useFullyQualifiedRedirectUrl = "true" />" this code from web.config file.
if u add this , it doesn't work.
(I know that Microsoft says add this code to web.config file.But if u add this,there is a problem with redirecting.)
And the second problem;
This code doesn't work at some of the mobile phones.
So u have to change the
(
<identification>
<capability name="majorversion" match="^[5-9]" />
</identification>
)
majorversion in the file.
change 5-9 to 4-9
<capability name="majorversion" match="^[4-9]" />
U can find the file to change in "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG"
this path.
Umit
umitgunden
Member
4 Points
2 Posts
Re: How to redirect mobile page between mobile phones and Pocket PC
Dec 03, 2007 07:36 AM|LINK
there are some examples about this subject.
http://www.pluralsight.com/blogs/jimw/archive/2007/10/22/48823.aspx
http://msdn2.microsoft.com/en-us/library/fhhycabe.aspx
PDA Images ASP.NET 1.1 ASP.NET 2.0 ASPX Windows Mobile Windows CE body tag atributes iis vs2005 .Net 2.0 .NET 1.1 JavaScript XMLHttpRequest Ajax Internet Explorer Mobile ASP.NET ASP.NET Mobile Controls JScript BackColor redirection login Visual Studio 2005 mobile asp.net ASP.NET AJAX Windows Mobile 6 UpdatePanel