Groups | Blog | Home
all groups > asp.net mobile > november 2004 >

asp.net mobile : How to enable frames in web mobile application?


Roman O
11/18/2004 5:51:44 PM
Hello.

I can insert <frameset> and <frame> tags using devicespecific filter and
<asp:xml> control. But they're situated within <body> tag and browser ignore
them.

Is another way to insert frame tags or how to remove <body> tag?

Thanks!

Roman O
11/19/2004 8:46:43 AM
OK! I've just solved this problem!
Use <mobile:devicespecific> and <scripttemplate>. Following code
demonstrates it:
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<choice filter="isHTML32"
xmlns="http://schemas.microsoft.com/mobile/html32template">
<scripttemplate>
<frameset border="0" rows="*,20">
<frame src="Content.aspx" scrolling="auto"
name="Content"></frame>
<frame src="Navigation.aspx" scrolling="no"></frame>
</frameset>
</scripttemplate>
</choice>
</mobile:DeviceSpecific>

Best regards, Roman Ogolikhin.

AddThis Social Bookmark Button