2012-04-02 23 views
0

我創建了一個簡單的asp.net移動網頁使用VS 2008.所以基本上我使用system.web.mobile。該頁面在iphone,windows phone中正常工作。但在Android中,我收到不可用的頁面錯誤。有什麼設置,我需要更改爲Android?這是我的表格ASP.Net移動網頁不能在android

<%@ Register TagPrefix="mobile" Assembly="System.Web.Mobile" Namespace="System.Web.UI.MobileControls" %> 
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <body> 
    <mobile:form id="form1" runat="server"> 
    <mobile:Label id="Label1" runat="server" Text="Please select an item to view" /> 
    <mobile:SelectionList runat="server" 
    id="SelList1" OnSelectedIndexChanged="SelList1_SelectedIndexChanged" /> 
    <mobile:Command id="Command2" runat="server" 
    Text=" Hit Enter to view the details " /> 
     Name: <mobile:Label id="lblName" runat="server" /> 
     Description : <mobile:Label id="lblDesc" runat="server" /> 
     <mobile:Command id="Command1" runat="server" 
     Text=" OK " /> 
    </mobile:form> 
    </body> 
    </html> 

回答

0

我在XHTML在iPhone和Android上運行良好時遇到了很多麻煩。您可能只想使用HTML5 DOCTYPE,並使用自適應渲染來檢測您想要支持的功能。

+0

我試過HTML 5,但仍然收到相同的錯誤。 – Srividhya 2012-04-02 21:26:25

+0

在IIS日誌中顯示什麼錯誤? – mgnoonan 2012-04-03 00:06:52