Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends.

I need one little help.
How optimized ASP.NET for mobile telephone?
I use this
http://msdn.microsoft.com/en-us/library/fhhycabe.aspx[^]
but when in the my asp.net project I put this code?
This:
XML
<system.web>
   <httpRuntime useFullyQualifiedRedirectUrl = "true" />
 </system.web>

i put in the WEB.CONFIG, and this:
C#
public void Page_Load(Object sender, EventArgs e)
        {
            if (Request.Browser["IsMobileDevice"] == "true")
            {
                Response.Redirect("_LayoutMobile.cshtml");
            }
            else
            {
                Response.Redirect("_Layout.cshtml");


in the global.asax

is this correct ?

Ok the second question is how test my asp.net (IIS) application on android or windows phone operating system ? When I start my project on my computer ( from Visual Studio) he open a internet explorer site for log in my application, when I test this localhost on Windows Mobile 6 emulator doesn't work (the emulator is on the same network device).

For now thanks!
Posted
Comments
CHill60 14-Jul-15 10:48am    
Related to your other question that was closed - have a look at https://msdn.microsoft.com/en-us/library/gg328027.aspx[^]

1 solution

Quote:
Ok the second question is how test my asp.net (IIS) application on android or windows phone operating system ? When I start my project on my computer ( from Visual Studio) he open a internet explorer site for log in my application, when I test this localhost on Windows Mobile 6 emulator doesn't work (the emulator is on the same network device).


The IIS associated with your Visual Studio runs in a way that it is only accessible from your localhost. This means that your local IIS needs to be configured to accept connections which are not originating from localhost | 127.0.0.1:

http://mobile.dzone.com/articles/iis-express-and-windows-phone[^]
http://blogs.msdn.com/b/robcamer/archive/2008/04/15/surfing-your-local-iis-from-the-device-emulator.aspx?Redirected=true[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900