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 / September 2006

Tip: Looking for answers? Try searching our database.

Content-Type of MobilePage

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chance Hopkins - 22 Mar 2005 00:37 GMT
No matter what I do, I can't force a page to have a wml content-type (or any
other type).

It seems that the MobilePage controls this somewhere internally.

Is there an override or property to control this?

The code below returns:
Content-Type: text/html; charset=utf-8

unless I remove " Inherits="System.Web.UI.MobileControls.MobilePage" " and
the form and control.

Then it returns:
Content-Type: text/vnd.wap.wml; charset=utf-8

Id like to use the MobilePage class and force the content-type if possible.

Any tips or clarity?

-------------------------------------

<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" Language="VB" %>
<%
Response.ContentType="text/vnd.wap.wml"
Response.Write("<?xml version=""1.0"" encoding=""ISO-8859-1""?>")
%>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<mobile:Form runat="server" ID="Form1" NAME="Form1">
   Hello, world!<br />
   <mobile:Label runat="server" Text="This is a label" ID="Label1"
NAME="Label1" />
</mobile:Form>
Chance Hopkins - 25 Mar 2005 03:31 GMT
NM. I got it working.

> No matter what I do, I can't force a page to have a wml content-type (or
> any other type).
[quoted text clipped - 32 lines]
> NAME="Label1" />
> </mobile:Form>
justin_qz - 12 Sep 2006 04:08 GMT
Hello Chance,

I am also stumbling on to this issue, and want to try the reverse, forcing
vnd.wap.wml to text/html. If you provide some hints I will be most
appreciated.

Best regards,
Justin.

>NM. I got it working.
>
[quoted text clipped - 3 lines]
>> NAME="Label1" />
>> </mobile:Form>

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.