|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
WAP & ASP
<i><b>Originally posted by : leo (leo@hydrant.co.uk)</b></i><br />Anyone using Nokia WAP toolkit? <br /><br />As soon as I add the line.... <br /><%Response.ContentType = "text/vnd.wap.wml"%> <br /><br />to the top of my pages to set them up for wml / asp content - The 7110 emulator refuses to show the pages. I can add the line just below the ususal <?xml version=1.0?> tag but then all my other tags are shown along with my content!<br /><br />any help would be much appreciated!<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : leo (leo@hydrant.co.uk)</b></i><br />yes I know I'm replying to my own question. HOWEVER having found a solution to the problem I thought I'd let anyone else having similar problems know whats going wrong!<br /><br />Most code examples for this wap / database hookup actually inaccurate code - it should look like this:-<br /><br /><% Response.ContentType = "text/vnd.wap.wml" %><?xml version="1.0"?><br /><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"<br />"http://www.wapforum.org/DTD/wml_1.1.xml"><br /><wml><br />ect..etc..<br /><br />THE MUST BE NO SPACE ? TAB OR RETURN BETWEEN THE Response.ContentType and the xml statements they must also be on the very first line of the code otherwise The Nokia browser won't recognise the content type statement. Many examples show the xml statement on a new line below the reponse write line THIS WILL NOT WORK!<br /><br />Hope this helps someone as desparate as I was!<br /><br />leo<br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : M </b></i><br />Hi,<br />there was no problem with my asp page when I have included the <% response.contenttype......<br />and then the <br /><?xml version="1.0"?><br /><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"<br />"http://www.wapforum.org/DTD/wml_1.1.xml"><br /><wml><br />......<br />on separate lines.I have used the Nokia browser.<br />Check the URL to which your pointing to.it should be "http://www.wapforum.org...." and not "http://www.phone.c......".<br /><br /><br /><br />------------<br />leo at 2/19/2001 5:03:36 PM<br /><br />yes I know I'm replying to my own question. HOWEVER having found a solution to the problem I thought I'd let anyone else having similar problems know whats going wrong!<br /><br />Most code examples for this wap / database hookup actually inaccurate code - it should look like this:-<br /><br /><% Response.ContentType = "text/vnd.wap.wml" %><?xml version="1.0"?><br /><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"<br />"http://www.wapforum.org/DTD/wml_1.1.xml"><br /><wml><br />ect..etc..<br /><br />THE MUST BE NO SPACE ? TAB OR RETURN BETWEEN THE Response.ContentType and the xml statements they must also be on the very first line of the code otherwise The Nokia browser won't recognise the content type statement. Many examples show the xml statement on a new line below the reponse write line THIS WILL NOT WORK!<br /><br />Hope this helps someone as desparate as I was!<br /><br />leo<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > WAP & ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|