ASP.NET WAP Site


S

ssp

Hi all,

I've been digging for information regarding development of an ASP.NET
WAP Site, but it seems there's very little information around it. Other
then some demo scripts...

Here's my problem. I've created a new project to develop an ASP.NET
Mobile Web application. I created a new Mobile Web Form and following
is the code it automatically generated for me:

---------------
<%@ Page language="c#" Codebehind="test.aspx.cs" Inherits="wap.test"
AutoEventWireup="false" %>
<%@ Register TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile"
%>
<head>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="C#">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/Mobile/Page">
</head>

<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:Form id=Form1 runat="server">This is a test
form</mobile:Form>
</body>

---------------

Unfortunately the form won't display in my browser giving me a
"Following error occured: 400" or "Following error occured: 500" (from
production server - windows 2003, iis 6) depending on the server...

My local set up is as follows:

- Windows XP
- IIS 5+
- .NET Framework SDK 1.1
- VS.NET 2003
- Winwap for Windows browser
- Mobile Gateway 3.0

I don't know where I am going wrong.

Any help?
SSP
 
Ad

Advertisements

W

Wiktor Zychla [MVP]

Here's my problem. I've created a new project to develop an ASP.NET
Mobile Web application. I created a new Mobile Web Form and following
is the code it automatically generated for me:

---------------
<%@ Page language="c#" Codebehind="test.aspx.cs" Inherits="wap.test"
AutoEventWireup="false" %>
<%@ Register TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile"
%>
<head>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="C#">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/Mobile/Page">
</head>

<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:Form id=Form1 runat="server">This is a test
form</mobile:Form>
</body>

---------------

Unfortunately the form won't display in my browser giving me a
"Following error occured: 400" or "Following error occured: 500" (from
production server - windows 2003, iis 6) depending on the server...

My local set up is as follows:

- Windows XP
- IIS 5+
- .NET Framework SDK 1.1
- VS.NET 2003
- Winwap for Windows browser
- Mobile Gateway 3.0

I don't know where I am going wrong.

did you compile the project? how do you navigate to the project site in your
browser? does the project start in IE from within the VS.NET?
Wiktor Zychla
 
W

Wiktor Zychla [MVP]

The browser I am using is Winwap for Windows (www.winwap.org). I have a
wap gateway installed called Mobile Gateway 3.0 (www.realwow.com). The
winwap browser goes through the wap gateway to the project site at
http://localhost/projectsite/test.aspx.

I cannot use IE for wap browsing because it doesn't support wml.

To test if the website works at all, browse it with IE. If you browse a
mobile website with IE, html (not wml) is returned to the browser (it is one
of those neat things in asp.net).
Then if you are sure that the website works, test it with a mobile browser.
I suggest using free Microsoft Mobile Explorer 3.0. I've experimented with
some other mobile browser emulators and none of them worked properly for me.

Wiktor
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top