@ Register
TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<!DOCTYPE
html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml"
>
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body>
<mobile:Form
ID="Form1"
Runat="server">....................here it says: Warning 107 Unrecognized tag prefix or device filter 'mobile'. C:\X\Mobile.aspx 10 6 X
</mobile:Form>
</
body>
</
html>
using
System;
using
System.Collections;
using
System.Configuration;
using
System.Data;
using
System.Linq;
using
System.Web;
using
System.Web.Security;
using
System.Web.UI;
using
System.Web.UI.HtmlControls;
using
System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using
System.Xml.Linq;
using
System.Web.Mobile;
using
System.Web.UI.MobileControls;
namespace X
{
public partial
class Mobile : System.Web.UI.MobileControls.MobilePage
zipfeli
Member
110 Points
194 Posts
How can I create a new mobile webform in visual studio 2008 since template not supported anymore?
Feb 13, 2008 10:55 AM|LINK
Hi
I created a common web form and added assembly and namespaces in page directive and codebehind, but the "mobile:" prefix is not recognized?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Mobile.aspx.cs" Inherits="X.Mobile" %><%
@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><
html xmlns="http://www.w3.org/1999/xhtml" ><
head runat="server"> <title>Untitled Page</title></
head><
body> <mobile:Form ID="Form1" Runat="server">....................here it says: Warning 107 Unrecognized tag prefix or device filter 'mobile'. C:\X\Mobile.aspx 10 6 X
</mobile:Form></
body></
html>using
System;using
System.Collections;using
System.Configuration;using
System.Data;using
System.Linq;using
System.Web;using
System.Web.Security;using
System.Web.UI;using
System.Web.UI.HtmlControls;using
System.Web.UI.WebControls;using
System.Web.UI.WebControls.WebParts;using
System.Xml.Linq;using
System.Web.Mobile;using
System.Web.UI.MobileControls; namespace X{
public partial class Mobile : System.Web.UI.MobileControls.MobilePage{
protected void Page_Load(object sender, EventArgs e){
}
}
}
mobile visual Studio 2008
SKT_01
Participant
1930 Points
435 Posts
Re: How can I create a new mobile webform in visual studio 2008 since template not supported anym...
Feb 16, 2008 08:43 AM|LINK
Take over a mobile web form from Visual Studio 2005.
zipfeli
Member
110 Points
194 Posts
Re: How can I create a new mobile webform in visual studio 2008 since template not supported anym...
Feb 16, 2008 12:40 PM|LINK
I don't have VS2005
SKT_01
Participant
1930 Points
435 Posts
Re: How can I create a new mobile webform in visual studio 2008 since template not supported anym...
Feb 16, 2008 03:16 PM|LINK
Use the Introduction to ASP.NET Mobile Web Pages as starting point and copy and paste the code of the mobile web form into your page in source view.
Drag mobile controls from the Toolbox into the source view because the Mobile Designer is no more available in Visual Studio 2008.
FMastro
Member
624 Points
160 Posts
Re: How can I create a new mobile webform in visual studio 2008 since template not supported anym...
Feb 21, 2008 10:10 PM|LINK
http://blogs.msdn.com/webdevtools/archive/2007/09/17/tip-trick-asp-net-mobile-development-with-visual-studio-2008.aspx
Templates for VS 2008
FredMastro.Com