943,621 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 2717
  • ASP RSS
Dec 23rd, 2008
0

Converting an IIS wepage to a mobile page

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asp_see is offline Offline
6 posts
since Dec 2008
Dec 23rd, 2008
0

Re: Converting an IIS wepage to a mobile page

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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is online now Online
6,654 posts
since Dec 2004
Dec 23rd, 2008
0

Re: Converting an IIS wepage to a mobile page

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asp_see is offline Offline
6 posts
since Dec 2008
Dec 23rd, 2008
0

Re: Converting an IIS wepage to a mobile page

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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is online now Online
6,654 posts
since Dec 2004
Dec 23rd, 2008
0

Re: Converting an IIS wepage to a mobile page

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asp_see is offline Offline
6 posts
since Dec 2008
Dec 24th, 2008
0

Re: Converting an IIS wepage to a mobile page

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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is online now Online
6,654 posts
since Dec 2004
Mar 28th, 2009
0

Re: Converting an IIS wepage to a mobile page

i had to do a similer project recently... found this bit of code and modified it a bit

ASP Syntax (Toggle Plain Text)
  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
Reputation Points: 10
Solved Threads: 2
Junior Poster
william_stam is offline Offline
131 posts
since Mar 2005
May 25th, 2009
0

Re: Converting an IIS wepage to a mobile page

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.
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
FaridMasood is offline Offline
59 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: user configurable refresh time
Next Thread in ASP Forum Timeline: combo box error validation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC