ASP.NET for Mobile phone? Android上的IIS?怎么样 [英] ASP.NET for Mobile telephone? IIS on Android? How
问题描述
你好朋友。
我需要一点帮助。
如何优化ASP.NET移动电话?
我用这个
http:// msdn .microsoft.com / zh-cn / library / fhhycabe.aspx [ ^ ]
但是在我的asp.net项目中我放了这个代码?
这个:
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:
<system.web>
<httpRuntime useFullyQualifiedRedirectUrl = "true" />
</system.web>
i放入WEB.CONFIG,这个:
i put in the WEB.CONFIG, and this:
public void Page_Load(Object sender, EventArgs e)
{
if (Request.Browser["IsMobileDevice"] == "true")
{
Response.Redirect("_LayoutMobile.cshtml");
}
else
{
Response.Redirect("_Layout.cshtml");
global.asax中的
这是对的吗?
好的第二个问题是如何在Android或Windows Phone操作系统上测试我的asp.net(IIS)应用程序?当我在我的计算机上启动我的项目(从Visual Studio)时,他打开一个Internet Explorer网站登录我的应用程序,当我在Windows Mobile 6模拟器上测试这个本地主机不起作用时(模拟器在同一个网络设备上)。
现在谢谢!
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!
推荐答案
好的第二个问题是如何在Android或Windows Phone操作系统上测试我的asp.net(IIS)应用程序?当我在我的计算机上启动我的项目(从Visual Studio)时,他打开一个Internet Explorer网站登录我的应用程序,当我在Windows Mobile 6模拟器上测试这个本地主机不起作用时(模拟器在同一个网络设备上)。
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).
与Visual Studio关联的IIS的运行方式只能从本地主机访问。这意味着您需要将本地IIS配置为接受不是源自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 [ ^ ]
这篇关于ASP.NET for Mobile phone? Android上的IIS?怎么样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!