Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Validation Error (Mobile HTML): Element 'h1' is not supported...?

0 views
Skip to first unread message

SDProgrammerGuy

unread,
Jun 29, 2006, 12:08:02 AM6/29/06
to
Hi I am developing a .net mobile app on vs 2005; whenever I have a mobile web
page, and try to add tags such as <h1> (which are valid xhtml), the designer
gives the error: Validation Error (Mobile HTML): Element 'h1' is not
supported and at run time the tags never get emitted.... Yet I need this
functionality!

How can I get this to work? Also what schema is it "validating" against..it
won't let me choose a schema from the drop down? I have googled extensively
and found nothing.... Please help

JJ

unread,
Jul 1, 2006, 12:22:33 AM7/1/06
to
It took me a little while to figure this out also. When using the mobile
web forms, the runtime wants to control all of the output, and it strips out
anything you have on the forms other than controls.

The trick is to embed the HTML code using a Panel mobile control and placing
the HTML in a DeviceSpecific control inside the panel.. Put something like
this where you want to output the <h1> tag:

<mobile:Panel id="panHdr1" runat="server">
<mobile:DeviceSpecific id="devHdr1" runat="server">
<Choice Filter="isHTML32">
<ContentTemplate>
<h1>Your Heading</h1>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>


"SDProgrammerGuy" <SDProgr...@discussions.microsoft.com> wrote in
message news:044052B1-129A-492B...@microsoft.com...

0 new messages