locked
XHTML MP and VS 2005 RRS feed

  • Question

  • User1620866808 posted

     Hi all,

    I a bit confused here.... when i'm writing a mobile application using vs 2005 (using the System.Web.Mobile assembly)  i'm actually writing xhtml files ? 

    if not how can i use vs 2005 to create xhtml mp files?

    Thanks,

    Shay

    Tuesday, September 2, 2008 9:49 AM

Answers

  • User-22218653 posted

    ya ... what ever u want u can do using your server site ie asp.net. but don't forget about the xhtml-mp, follow the rules and follow them strickly to achive the you application to be viewable at most of our mobile phones. it's nothing but a web site which is bulit using the basic html tags.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 2, 2008 10:51 AM

All replies

  • User-22218653 posted

    again copy past from the another thread of mine :D

    http://forums.asp.net/t/1304852.aspx

    Today most of our phone supports xhtml so If u can develop ur application using xhtml-mp then it will be support more phones.

    The following link will help u a lot regarding the mobile application development.

    http://www.developershome.com/wap/xhtmlmp/ 

    "XHTML MP (XHTML Mobile Profile) is the markup language of WAP 2.0. XHTML MP is a subset of XHTML, which is the combination of HTML and XML. Our XHTML MP tutorial starts with an introduction of XHTML MP and an overview of the relationship between various markup languages such as WML, XHTML, XHTML Basic and XHTML MP. Then it covers the major differences between WML and XHTML MP, XHTML MP's syntax rules and document structure, etc. In addition, our XHTML MP tutorial includes coverage about lists, tables, anchor links, selection lists, input elements and the posting of data from mobile devices to the server."

     

    U can use openwave simulator: http://developer.openwave.com/dvl/tools_and_sdk/phone_simulator/

    and please discover http://en.wikipedia.org/wiki/Mobile_browser

    Tuesday, September 2, 2008 10:12 AM
  • User1620866808 posted

     I understand that and I've seen the developershome site before but (quote from the site) "...you need to write a few lines of code using a server-side scripting language (e.g. ASP, JSP, Perl, PHP). The pseudo-code is shown below:...."

    The server site that I want to use is ASP.NET. Is that posible?

    Thanks

    Tuesday, September 2, 2008 10:28 AM
  • User-22218653 posted

    ya ... what ever u want u can do using your server site ie asp.net. but don't forget about the xhtml-mp, follow the rules and follow them strickly to achive the you application to be viewable at most of our mobile phones. it's nothing but a web site which is bulit using the basic html tags.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 2, 2008 10:51 AM
  • User1620866808 posted

     ok i understand... I need to create a regular web site and follow the rules of the xhtml mp in my aspx pages. Do i need to declare the document type in my pages?

     <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

    How can I make sure that what I write is valide xhtml mp?

    Thanks

    Tuesday, September 2, 2008 11:24 AM
  • User-1113931457 posted

     don't use this doctype. Visual Studio 2005 don't have this doctype in Target Schema Validation set. you can use XHTML 1.0 Transationl from Html Source Editor tools which is a default doctype for every page. this works great. And for Page Validation you can check validator.w3.org and ready.mobi sites. These sites have almost every schema validation tools. :)

    hope this helps.

    Wednesday, September 3, 2008 12:13 AM
  • User-22218653 posted

    yes irtizaur you r right.

    hi shay_chen two more things to follow

    1. If u use session variable...use cookieless(as most of our mobile phone doesn't support cookie based session) session

    2. Set your content type to text/html for all page's

    Happy Coding with XHTML-MP (as i always tries to develop my application with this one)  [cool]

    Wednesday, September 3, 2008 3:20 AM
  • User1620866808 posted

    Hi guys,

     

    thanks a lot for the info it realy hepls :)

    Wednesday, September 3, 2008 3:56 AM