Problem with mobile:link rendering on Nokia devices

T

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:

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

Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com
 
O

orbyone

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?
 
O

orbyone

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top