Converting an IIS wepage to a mobile page

Reply

Join Date: Dec 2008
Posts: 6
Reputation: asp_see is an unknown quantity at this point 
Solved Threads: 0
asp_see asp_see is offline Offline
Newbie Poster

Converting an IIS wepage to a mobile page

 
0
  #1
Dec 23rd, 2008
Hai all,

I already created a portal with nearly 25 asp pages. How to convert this portal to a mobile viewable page? if I view that portal thro' blackberry, the total portal is scrambled. Any way to directly convert this portal. Any converter tool is available. Pls help

Thanx in advance

Seetha
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,189
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Converting an IIS wepage to a mobile page

 
0
  #2
Dec 23rd, 2008
Nope there is no direct way as in general there are 3 types of mobile devices
  • without capability of internet access (old phones)
  • internet access, but no internet browser just simple parser (most of current phones)
  • internet access and mobile internet browser ( number of Windows CE based phones, some Symbian, Blackberry, HTC, iPhone etc. )
First group is out of loop as there is no internet
Second group will require simplified version of your web site based on WAP
Last group will be happy browsing normal page
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 6
Reputation: asp_see is an unknown quantity at this point 
Solved Threads: 0
asp_see asp_see is offline Offline
Newbie Poster

Re: Converting an IIS wepage to a mobile page

 
0
  #3
Dec 23rd, 2008
Mine will come under lastgroup. But thro' blackberry, I am unable to view the page correctly. If I view google page, itz very compatible to the screen. But if I view my page, itz not fit in a single screen. What to do now?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,189
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Converting an IIS wepage to a mobile page

 
0
  #4
Dec 23rd, 2008
Get (WURFL it needs PHP) or create browser/device detection algorithm and based upon this you can re-direct devices to your sub-domain specially designed for mobile devices
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 6
Reputation: asp_see is an unknown quantity at this point 
Solved Threads: 0
asp_see asp_see is offline Offline
Newbie Poster

Re: Converting an IIS wepage to a mobile page

 
0
  #5
Dec 23rd, 2008
Hai,
Your reply helped me to know how to identify the browser. But I am very new to this.
I found the solution in the following webpage
http://mobiforge.com/developing/stor...-detection-asp

My question is how do I complete the code...the part: Whether I need to write a separate code for mobiles(???) and separate one for desktop browsers.


if($mobile_browser>0) {
// do something
// YES MOBILE
}
else {
// do something else
// NOT MOBILE
}

Thanks
Seetha
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,189
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Converting an IIS wepage to a mobile page

 
0
  #6
Dec 24th, 2008
As I mention previously you would do best if you keep mobile content in sub-domain (if your domain is for example seetha.com you should get sub-domain like mobile.seetha.com or wap.seetha.com DO NOT FORGET TO SPEAK WITH YOUR HOSTING PROVIDER SO YOU KNOW THEIR POLICY ON THIS). So once the script recognise incoming request it will directed user to seetha.com/home.asp or mobile.seetha.com/home.wml respectively. From this point onward documents in desktop domain are linked between each other, but there is no cross linking with mobile domain
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

Re: Converting an IIS wepage to a mobile page

 
0
  #7
Mar 28th, 2009
i had to do a similer project recently... found this bit of code and modified it a bit

  1. Dim user_agent, mobile_browser, Regex, match, mobile_agents, mobile_ua, i, size
  2.  
  3. user_agent = Request.ServerVariables("HTTP_USER_AGENT")
  4.  
  5. mobile_browser = 0
  6.  
  7. Set Regex = New RegExp
  8. With Regex
  9. .Pattern = "(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|windows ce|pda|mobile|mini|palm|mobi)"
  10. .IgnoreCase = True
  11. .Global = True
  12. End With
  13.  
  14. match = Regex.Test(user_agent)
  15.  
  16. If match Then mobile_browser = mobile_browser+1
  17.  
  18. If InStr(Request.ServerVariables("HTTP_ACCEPT"), "application/vnd.wap.xhtml+xml") Or Not IsEmpty(Request.ServerVariables("HTTP_X_PROFILE")) Or Not IsEmpty(Request.ServerVariables("HTTP_PROFILE")) Then
  19. mobile_browser = mobile_browser+1
  20. end If
  21.  
  22. mobile_agents = Array("w3c ", "acs-", "alav", "alca", "amoi", "audi", "avan", "benq", "bird", "blac", "blaz", "brew", "cell", "cldc", "cmd-", "dang", "doco", "eric", "hipt", "inno", "ipaq", "java", "jigs", "kddi", "keji", "leno", "lg-c", "lg-d", "lg-g", "lge-", "maui", "maxo", "midp", "mits", "mmef", "mobi", "mot-", "moto", "mwbp", "nec-", "newt", "noki", "operamini", "palm", "pana", "pant", "phil", "play", "port", "prox", "qwap", "sage", "sams", "sany", "sch-", "sec-", "send", "seri", "sgh-", "shar", "sie-", "siem", "smal", "smar", "sony", "sph-", "symb", "t-mo", "teli", "tim-", "tosh", "tsm-", "upg1", "upsi", "vk-v", "voda", "wap-", "wapa", "wapi", "wapp", "wapr", "webc", "winw", "winw", "xda", "xda-", "opera mobi")
  23. size = Ubound(mobile_agents)
  24. mobile_ua = LCase(Left(user_agent, 4))
  25.  
  26. For i=0 To size
  27. If mobile_agents(i) = mobile_ua Then
  28. mobile_browser = mobile_browser+1
  29. Exit For
  30. End If
  31. Next
  32.  
  33.  
  34. If mobile_browser>0 Then
  35. response.write("mobile")
  36. else
  37. Response.Write("normal")
  38. End If
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 59
Reputation: FaridMasood is an unknown quantity at this point 
Solved Threads: 0
FaridMasood's Avatar
FaridMasood FaridMasood is offline Offline
Junior Poster in Training

Re: Converting an IIS wepage to a mobile page

 
0
  #8
May 25th, 2009
asp_see

you will need to detect the client device and then redirect to your sub domain and most importantly you need to rewrite all code for the display logic but still you can use your existing code for programming.

You will be required to use Mobile controls for you application interface.
Thanks and Best of Lusk,

Farid ud din Masood
MS.c (CS)
University of Agriculture, Faisalabad
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC