Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / February 2005

Tip: Looking for answers? Try searching our database.

Problem with mobile:link rendering on Nokia devices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Themos - 08 Feb 2005 10:58 GMT
Hi,

I have a ASP.NET Mobile site, and have come against a strange bug. A page which contains mobile:link tags renders perfectly on all phones (BreakAfter=True), but strangely enough, on Nokia devices it renders WML content but does not display a br (line break) tag after the anchor link. Any ideas?

You can verify that with the following code:

   Dim req As HttpWebRequest
   Dim res As HttpWebResponse
   Dim rd As IO.StreamReader
       Dim bytes() As Byte
       req = HttpWebRequest.Create("your_page_with_Links_here")
'Any other agent like SIE-SL45/3.1 UP/4.1.19i renders the br tag after links
       req.UserAgent = "Nokia"
       res = req.GetResponse()
       rd = New IO.StreamReader(res.GetResponseStream)
       msgbox rd.ReadToEnd
orbyone - 08 Feb 2005 16:47 GMT
Ok, problem solved. Machine.config, even after DeviceUpdate4, has a
strange rendersBreaksAfterWmlAnchor=true for all Nokia's. To correct
this, add these entries to your web.config (you may also correct
machine.config if you like)

<configuration>
 <system.web>
    <browserCaps>
        <use var="HTTP_USER_AGENT" />
        rendersBreaksAfterWmlAnchor="false"
    </browserCaps>
 </system.web>
</configuration>

Themos

> Hi,
>
> I have a ASP.NET Mobile site, and have come against a strange bug. A page which contains mobile:link tags renders perfectly on all phones
(BreakAfter=True), but strangely enough, on Nokia devices it renders
WML content but does not display a br (line break) tag after the anchor
link. Any ideas?

> You can verify that with the following code:
>
[quoted text clipped - 12 lines]
> www.developmentnow.com/g
> www.developmentnow.com
orbyone - 08 Feb 2005 16:47 GMT
Ok, problem solved. Machine.config, even after DeviceUpdate4, has a
strange rendersBreaksAfterWmlAnchor=true for all Nokia's. To correct
this, add these entries to your web.config (you may also correct
machine.config if you like)

<configuration>
 <system.web>
    <browserCaps>
        <use var="HTTP_USER_AGENT" />
        rendersBreaksAfterWmlAnchor="false"
    </browserCaps>
 </system.web>
</configuration>

Themos

> Hi,
>
> I have a ASP.NET Mobile site, and have come against a strange bug. A page which contains mobile:link tags renders perfectly on all phones
(BreakAfter=True), but strangely enough, on Nokia devices it renders
WML content but does not display a br (line break) tag after the anchor
link. Any ideas?

> You can verify that with the following code:
>
[quoted text clipped - 12 lines]
> www.developmentnow.com/g
> www.developmentnow.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.