CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 5/17/2007 5:30:15 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 7 Views: 55 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
8 Items, 1 Pages 1 |< << Go >> >|
littlebluedevil
Asp.Net User
Master pages and mobile web forms5/17/2007 5:30:15 PM

0/0

Hi guys,

I'm wondering is it possible to use master pages with mobile web forms?  When I try to create new mobile web forms I'm not given the option to associate a master page with it in visual studio 2005.  Can I just add the prefix header to the top as a work around?

Thanks in advance. 

Amanda Wang - M
Asp.Net User
Re: Master pages and mobile web forms5/22/2007 7:31:48 AM

0/0

Hi,

I don't think it is possible to use master page since not given the option.

In addition, in mobile web form the <form> tag is <mobile:Form>, however in the Master Page file. the <form> tag is <form>. It doesn't support the mobile web form. so I'm afraid you could not use  masterpage.

You may read more regarding Mobile Web Development in the msdn article.

http://msdn2.microsoft.com/en-us/library/aa286514.aspx

 

hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
littlebluedevil
Asp.Net User
Re: Master pages and mobile web forms5/22/2007 12:22:45 PM

0/0

It's too bad because I have a lot of template pages to create and masterpages would really cut down the time and effort.

Thanks for the link, I appreciate the response. 

Adam.Kahtava
Asp.Net User
Re: Master pages and mobile web forms5/22/2007 12:40:21 PM

0/0

Most current-generation mobile / handheld devices don't require Mobile Web Forms at all since they display CSS / XHTML pages quite well. This flexibility allows us to port over an existing web application to a handheld device, create a media dependent (handheld) Style Sheet, or go about creating our web application as we normally would (with Master Pages, Style Sheets, and Skins).

A great way to test your web application in a mobile browser is to download the Emulator Images for Windows Mobile 2003-based Pocket PC Development and test your application - you may also need to download the Microsoft Virtual PC to get the emulators to work.


-Adam Kahtava [http://adam.kahtava.com]
littlebluedevil
Asp.Net User
Re: Master pages and mobile web forms5/22/2007 1:10:49 PM

0/0

 Unfortunately I've tested our website and the mark up is quite complicated and a bit obtuse.  There is too much javascript and too many crappy css hacks for our site to function in a mobile browser.  A future rewrite is in the works (can you say sharepoint?) but years away.

Thanks for the link. 

Adam.Kahtava
Asp.Net User
Re: Master pages and mobile web forms5/22/2007 4:23:09 PM

0/0

I feel your pain. Another alternative would be to create a special (leaner) Master Page and Theme (omitting the JavaScript, buggy CSS, etc..) for mobile browsers and toggle the Master Page and Theme by referring to the Request.Browser.IsMobileDevice property.

Just trying to offer some alternatives. :) SharePoint is certainly picking up some momentum these days.


-Adam Kahtava [http://adam.kahtava.com]
littlebluedevil
Asp.Net User
Re: Master pages and mobile web forms5/22/2007 5:55:22 PM

0/0

I would do that, but management wants a separate dns name (mobile.ourcompany.com) and they specifically want it to go to a separate site, but I guess I can still make it a regular aspnet page.

I really like the idea of letting IIS decide how to render the output depending on the capabilities of the browser.  Thanks for your help Adam, I'll have to weigh the pros and cons.

Adam.Kahtava
Asp.Net User
Re: Master pages and mobile web forms5/22/2007 9:01:18 PM

0/0

It is also possible to load a Master Page or a Theme based solely on your sub domain name. For example: you could load a mobile theme based on mobile.ourcompany.com, a normal theme for www.ourcompany.com, or a red theme for red.ourcompany.com - again just a thought.

I agree; It is neat how ASP.NET automagically renders output based on browser capabilities, but it does have it's downsides (read more here). As mobile browsers (and browsers in general) continue to mature (and web standards are better adhered to) the need for creating distinctly different website for mobile devices will lessen.

You may be interested in reading more about ASP.NET's Adaptive Rendering.

Here's a couple great articles:


-Adam Kahtava [http://adam.kahtava.com]
8 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Beginning Visual Web Developer 2005 Express: From Novice to Professional Authors: Paul Sarknas, Rick Delorme, Pages: 334, Published: 2005
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Visual C# 2005: A Developer's Notebook Authors: Jesse Liberty, Pages: 221, Published: 2005
Beginning SQL Server 2005 Express Database Applications: With Visual Basic Express and Visual Web Developer Express from Novice to Professional Authors: Rick Dobson, Pages: 596, Published: 2005
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006

Web:
Working with MasterPages in Mobile Web Form? - ASP.NET Forums As far as I know, mobile web form doesn't support MasterPages, you can use web user control instead . Best regards, Guang-Ming Bian - MSFT ...
Microsoft Web Application Technologies with Microsoft Visual ... Master pages provide developers with a new set of features for ensuring consistent ... Device Emulators for Mobile Web Forms; Mobile Device Detection and ...
Core Web Application Technologies with Microsoft Visual Studio 2005 Use master pages to establish a common layout for a Web application. Manage state data for a Web .... Describe mobile Web pages, forms, and mobile controls. ...
Core Web Application Technologies with Microsoft Visual Studio ... Use master pages to establish a common layout for a Web application. ... Device Emulators for Mobile Web Forms; Mobile Device Detection and Redirection ...
Mobile web form templates / Master Pages - ASP.NET Forums 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. ...
Centralize site design with ASP.NET 2.0 master pages Pages that utilize a master page are called content pages, which are not special design elements—they are normal ASP.NET Web forms. ...
Visual Studio .NET kursus: MCP 2543: Core Web Application ... Use master pages to establish a common layout for a Web application. .... Describe mobile Web pages, forms, and mobile controls. ...
Core Web Application Technologies with Microsoft Visual Studio 2005 Use master pages to establish a common layout for a Web. Create a mobile .... Device Emulators for Mobile Web Forms. how to design and build Web-based user ...
MS2543 Core Web Application Technologies with Microsoft Visual ... This unit explains how to use master pages to define common layouts for Web pages. .... Describe mobile Web pages, forms, and mobile controls. ...
2543 - Core Web Application Technologies with Microsoft Visual ... Configure a Web Form as a Content Page Nested Master Pages ... Device Emulators for Mobile Web Forms Mobile Device Detection and Redirection ...

Videos:
Phil Calvin of Sitemasher - Fundfindr Interview Phil Calvin, Sitemasher's CTO, gives a brief demo of the Sitemasher Studio to Fundfindr. In this video Phil takes you through different areas of Site...
Philip Pocock 100 Days 100 Guests event (Day 63) Documenta X 1997 Philip Pocock speaking at Documenta X about hypercinema and the collabortative work produced in Uganda by Documenta X - A Description of the Equator ...




Search This Site:










sorting/paging data within a gridview populated by the xmlreader

change language from vb to c#

aspnet_compiler

how can i install sample access provider starter kit ( http://lab.msdn.microsoft.com/vs2005/downloads/starterkits/#vwd )?

images aren't been displayed in runtime.

datasource wizard failing to see controls

100% cpu usage

css formatting is lost when master page not open

where is the compiler?

why it does not using code behind on ide by default

.net v1.1 sp1 and .net 2.0 beta 2

visual web install states that it is already installed

express edition features compared to...

microsoft visual web developer express 2005 installation

unable to instal

compile time error: "[value] is not a valid value for the 'color' (or 'background-color') property

vwd-app doesn't show up in ie

needed help in data viewing...

problems with images posting

authentication works fine locally but not on my remote server

can i use vswd 2005 ee to connect to existing sql server 2000 db?

capture image by webcam and save on webform

i want to add a reference to microsoft outlook 11.0 object library but its not listed in the com add reference list in my project.

manual express download now live

how can i add some keywords in a aspx webpage?

debugging code and step into custom assembly ?

mssql2000 and data methods in visual web developer 2005 express edition

i need help for crystal report xi

visual web developer and iis root

remote server and web site admin tool

  Privacy | Contact Us
All Times Are GMT