[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

Labels added dynamically generates different WML

mike Mcgloin

1/20/2003 1:03:00 PM

I have an application that need to add labels and links dynamically to a
form. I have discovered that I if do this then a <span></span> is inserted
into the WML generated by MMIT if I am using a nokia phone ( 3330,6210,7110,
8310) see HTTP trace below , none of these phones are able to display the
response. I was wondering whether the control rendering does not work in the
same way when controls are added dynamically.

Any help, comments, correctiosn gratefully received.
Regards
Mike



----Trace when label is dynamically defined to form---

---Phone Request----
GET /fred/router.aspx?appid=418593129 HTTP/1.1
Host: localhost:8080
Accept: application/vnd.wap.wtls-ca-certificate,
application/vnd.wap.wmlscriptc, application/x-nokiagamedata,
application/vnd.wap.wmlc, image/vnd.wap.wbmp, text/plain, image/gif,
text/vnd.wap.wmlscript, text/vnd.wap.wml
accept-language: en
accept-charset: ISO-8859-1, UTF-8; Q=0.8, ISO-10646-UCS-2; Q=0.6
user-agent: Nokia3330/1.0 (03.05)
Via: Nokia Activ Server 2.0 Professional (build 2451A)
X-Network-Info: UDP,127.0.0.1,security=0
Accept-Encoding:
Connection: Close

---Server response---
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 20 Jan 2003 11:57:43 GMT
Connection: close
Set-Cookie: ASP.NET_SessionId=p5hcjc555bv5ntnyevelzm3e; path=/
Cache-Control: private
Content-Type: text/vnd.wap.wml; charset=utf-8
Content-Length: 237

<?xml version='1.0'?>
<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN'
'http://www.wapforum.org/DTD/wml_1.1.xml'><wml>&l...
<meta http-equiv="Cache-Control" content="max-age=0" />
</head>
<card>
<span>Label</span></card>
</wml>

---Trace when label is statically defined on the form.---
---Phone Request----
GET /fred/router.aspx?appid=648841688 HTTP/1.1
Host: localhost:8080
Accept: application/vnd.wap.wtls-ca-certificate,
application/vnd.wap.wmlscriptc, application/x-nokiagamedata,
application/vnd.wap.wmlc, image/vnd.wap.wbmp, text/plain, image/gif,
text/vnd.wap.wmlscript, text/vnd.wap.wml
accept-language: en
accept-charset: ISO-8859-1, UTF-8; Q=0.8, ISO-10646-UCS-2; Q=0.6
user-agent: Nokia3330/1.0 (03.05)
Via: Nokia Activ Server 2.0 Professional (build 2451A)
X-Network-Info: UDP,127.0.0.1,security=0
Accept-Encoding:
Connection: Close

---Server response---
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 20 Jan 2003 11:47:54 GMT
Connection: close
Set-Cookie: ASP.NET_SessionId=zcvl1mraovgci245yu12xaa3; path=/
Cache-Control: private
Content-Type: text/vnd.wap.wml; charset=utf-8
Content-Length: 231

<?xml version='1.0'?>
<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN'
'http://www.wapforum.org/DTD/wml_1.1.xml'><wml>&l...
<meta http-equiv="Cache-Control" content="max-age=0" />
</head>
<card>
<p>Label</p></card>
</wml>