Groups | Blog | Home
all groups > asp.net mobile > april 2006 >

asp.net mobile : tag <p> inside mobile:form WML



David
4/11/2006 6:25:48 PM
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
4/12/2006 5:22:53 PM
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

[quoted text, click to view]

AddThis Social Bookmark Button