Here's an example WML 1.1 deck written in ASP which gives contact
information for palowireless.com and shows current web site activity.
The file was generated using FrontPage 2000, hence the work-around to
remove the
HTML header and inserted by FrontPage and to ensure that the correct WAP
header
is written (###).
ASP Code is <%
shown like this %>
This page can be viewed on WAP devices at www.palowireless.com/windex.asp
<%@
Language=VBScript %>
<%
response.ContentType="text/vnd.wap.wml" ' content
type
response.write "<?xml
version=""1.0""?>" ' WAP header ###
%>
<% if 0 then ' hide the FrontPage header ### %>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage
4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<% end if %>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="MainCard" title="palowireless">
<p align="center">Welcome<br/>
</p>
<p align="center"><a href="#aboutus">About
Us</a><br/>
<a href="#whoson">Who's on the site</a><br/>
<a href="#msgs">Recent messages</a><br/>
</p>
<p align="center"><img src="images/pwsmall.wbmp"
alt="palowireless.com" /><br/>
</p>
</card>
<card id="aboutus" title="About Us">
<p align="left">palowireless Pty Ltd is a business and
technical consultancy specialising in web design, software development and
networking.<br/><br/>
Contact: Tony Corcoran<br/>
1 Bogan Street<br/>
Summer Hill NSW 2130 Australia<br/>
E-mail: webmaster @ palowireless.com<br/>
Phone: +61 (0) 419 802 224<br/>
ABN: 83 095 118 497<br/>
<br/>
<do type="accept" label="Back"> <prev/>
</do>
</p>
</card>
<card id="whoson" title="Who's on
palowireless.com">
<p align="center">There are <% =application("usercount")
%> users on the site<br/>
<br/>
<do type="accept" label="Back"> <prev/>
</do>
</p>
</card>
<card id="msgs" title="Who's on
palowireless.com">
<p align="center">
<%
if application("msgrcvd")="" then
application("msgrcvd")=0
end if
%>
<% =application("msgrcvd") %> mgs received
recently<br/>
<br/>
<do type="accept" label="Back"> <prev/>
</do>
</p>
</card>
</wml>
|