dtaylor
1/9/2002 5:27:00 PM
Thanks for replying! Unfortunately, my test environment
is behind a firewall. I've tried this on the M3Gate
emulator and the OpenWave SDK.
Here's the text from the aspx page:
--->
<%@ Register TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<%@ Page language="c#" Codebehind="MobileWebForm1.aspx.cs"
Inherits="WAPHte.MobileWebForm1" AutoEventWireup="false" %>
<body xmlns:mobile="Mobile Web Form Controls">
<mobile:Form id="frmMain" runat="server" title="FirstPage">
Welcome!</BR>
</mobile:Form>
</body> <---
From what I've read, by using VS.Net mobile Forms, the
programmer doesn't have to do anything extra to the page
to tell it to render WML. Is that correct? I just
created a new project with a mobileForm page and added
Welcome!<br/>
Does this type of page/controls have the intelligence to
figure out what browser made the request? Because if I
navigate to this page with IE, it definitely renders html
as follows:
---->
<html>
<head>
<title>First Page</title>
</head>
<body><form id="frmMain" name="frmMain" method="post"
action="MobileWebForm1.aspx?__ufps=631461612070323536">
<input type="hidden" name="__EVENTTARGET" value="">
<input type="hidden" name="__EVENTARGUMENT" value="">
<script language=javascript><!--
function __doPostBack(target, argument){
var theform = document.frmMain
theform.__EVENTTARGET.value = target
theform.__EVENTARGUMENT.value = argument
theform.submit()
}
// -->
</script>
Welcome!<br>
<a href="">Link</a><br>
</form></body></html>
<-------
>-----Original Message-----
>What emulator are you using?
>Could i hit the page from the internet?
>
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>You assume all risk for your use. © 2001 Microsoft
Corporation. All rights
>reserved.