[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

David

4/11/2006 9:26:00 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>&l...
<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


1 Answer

David

4/12/2006 8:23:00 PM

0

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

"David" <dalssoft at gmail com> wrote in message
news:uxq$$5aXGHA.1228@TK2MSFTNGP02.phx.gbl...
> 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>&l...
> <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
>