HighTechTalks DotNet Forums  

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

ASP.net Mobile microsoft.public.dotnet.framework.aspnet.mobile


Discuss Validation Error (Mobile HTML): Element 'h1' is not supported...? in the ASP.net Mobile forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
SDProgrammerGuy
 
Posts: n/a

Default Validation Error (Mobile HTML): Element 'h1' is not supported...? - 06-29-2006 , 12:08 AM






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

Reply With Quote
  #2  
Old   
JJ
 
Posts: n/a

Default Re: Validation Error (Mobile HTML): Element 'h1' is not supported...? - 07-01-2006 , 12:22 AM






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">
<mobileeviceSpecific id="devHdr1" runat="server">
<Choice Filter="isHTML32">
<ContentTemplate>
<h1>Your Heading</h1>
</ContentTemplate>
</Choice>
</mobileeviceSpecific>
</mobile:Panel>


"SDProgrammerGuy" <SDProgrammerGuy (AT) discussions (DOT) microsoft.com> wrote in
message news:044052B1-129A-492B-8F77-CB6551443470 (AT) microsoft (DOT) com...
Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.