Last post Sep 03, 2008 03:56 AM by shay chen
Sep 02, 2008 09:49 AM|shay chen|LINK
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?
Sep 02, 2008 10:12 AM|kamrul3d|LINK
again copy past from the another thread of mine :D
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.
"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
Sep 02, 2008 10:28 AM|shay chen|LINK
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?
Sep 02, 2008 10:51 AM|kamrul3d|LINK
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.
Sep 02, 2008 11:24 AM|shay chen|LINK
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?
<!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?
Sep 03, 2008 12:13 AM|irtizaur|LINK
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.
Sep 03, 2008 03:20 AM|kamrul3d|LINK
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)
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)
Sep 03, 2008 03:56 AM|shay chen|LINK
thanks a lot for the info it realy hepls :)