Answered by:
Mobile web form templates / Master Pages

Question
-
User214117797 posted
Hi,
I am new to WAP development so I have a few questions I hope someone can answer or direct me to relevant sources.
1/. Is there a concept of master pages for mobile web forms? I will be creating a fair few mobile web forms that share the same template.
2/. How to I go about creating a template design for mobile web forms? In normal ASP.NET where we can use HTML, I either create tables or position divs in the form. What is the alternative in mobile web forms? I need to create something with a template like this
<Template Header>
<Page Header>
<Content />
</Page Footer>
</Template Header>The headers and footers will simply be user controls that contain some logos/few words.
Thanks for your help.
Jim
Sunday, September 23, 2007 3:23 AM
Answers
-
User113421904 posted
Hi Jim,
1/. Is there a concept of master pages for mobile web forms? I will be creating a fair few mobile web forms that share the same template.
Master pages are not supported in ASP.NET Mobile Web Forms.
2/. How to I go about creating a template design for mobile web forms? In normal ASP.NET where we can use HTML, I either create tables or position divs in the form. What is the alternative in mobile web forms? I need to create something with a template like this
<Template Header>
<Page Header>
<Content />
</Page Footer>
</Template Header>The headers and footers will simply be user controls that contain some logos/few words.
You are able to use HeaderTemplate and FooterTemplate for ASP.NET Mobile Forms, however templates must be associated with specific device filters. You must define and apply device filters to controls prior to creating control templates. Please see these links for more details:http://msdn.microsoft.com/en-us/library/6c1x9zwd.aspx
http://www.dotnet247.com/247reference/msgs/12/63852.aspx
Alternatively, since one ASP.NET mobile Web Forms page allows several forms to be defined. Based on my understanding, you can make one form to serve as "template" and copy the contents from this form to others.
http://dotnetjunkies.com/MobileQuickStart/(0w5wzdykp0h4acin50hklo55)/doc/SimpleForms.aspx#Multiple
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 24, 2007 4:56 AM
All replies
-
User113421904 posted
Hi Jim,
1/. Is there a concept of master pages for mobile web forms? I will be creating a fair few mobile web forms that share the same template.
Master pages are not supported in ASP.NET Mobile Web Forms.
2/. How to I go about creating a template design for mobile web forms? In normal ASP.NET where we can use HTML, I either create tables or position divs in the form. What is the alternative in mobile web forms? I need to create something with a template like this
<Template Header>
<Page Header>
<Content />
</Page Footer>
</Template Header>The headers and footers will simply be user controls that contain some logos/few words.
You are able to use HeaderTemplate and FooterTemplate for ASP.NET Mobile Forms, however templates must be associated with specific device filters. You must define and apply device filters to controls prior to creating control templates. Please see these links for more details:http://msdn.microsoft.com/en-us/library/6c1x9zwd.aspx
http://www.dotnet247.com/247reference/msgs/12/63852.aspx
Alternatively, since one ASP.NET mobile Web Forms page allows several forms to be defined. Based on my understanding, you can make one form to serve as "template" and copy the contents from this form to others.
http://dotnetjunkies.com/MobileQuickStart/(0w5wzdykp0h4acin50hklo55)/doc/SimpleForms.aspx#Multiple
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 24, 2007 4:56 AM -
User214117797 posted
Thanks Zhao
I will give those articles a read and hopefully they will point me in the right direction.
Monday, September 24, 2007 6:32 PM