Hi all,
I'm using framework 1.1 and Asp.NET Mobile.
When I try to do this:
<mobile:Form id="Form1" runat="server">
<mobile:DeviceSpecific id=DeviceSpecific1 runat="server">
<Choice Filter="isWML11"
Xmlns="http://schemas.microsoft.com/mobile/chtml10template">
<HeaderTemplate><barcode value="12345678" height="64" width="2"
/></HeaderTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Form>
I get this:
<?xml version='1.0'?>
<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN'
'http://www.wapforum.org/DTD/wml_1.1.xml'><wml><head>
<meta http-equiv="Cache-Control" content="max-age=0" />
</head>
<card>
<do type="accept"><noop /></do><p><barcode value="12345678" height="64"
width="2" /></p></card>
</wml>
The problem is that my device can't read the tag <barcode> if it is inside a
<p> tag. The page can't have <p> tag in this case.
I've already tried:
- to eliminate the spaces and tabs between the <mobile:*> tags
- to put a <mobile:panel> inside the <mobile:form> and then put
<mobile:DeviceSpecific> inside
- to change the <HeaderTemplate> to <FooterTemplate>
and I had the same problem.
Any help?
Thanks,
David
David - 12 Apr 2006 21:22 GMT
Ok. I gonna change the question.
Can I change the behavior of <mobile:form> or <mobile:page> for a given
(WML-like) device?
Thanks,
David
> Hi all,
>
[quoted text clipped - 41 lines]
>
> David