Source: http://blog.9cbs.net/emag_mobile/Archive/2005/02/23/298742.aspx
I have been developed for more than a year. From the initial WAP1.2 to WAP2.0, China Unicom to China Mobile, during the period, during the period, the total sum of Linlin, has accumulated a lot of experience, in order to let the lasts will take some detour, special Some experiences have written out for your reference. WAP programs can be developed with ASP, JSP, PHP, Python, etc. If you are not trouble, use C . :) Because the author used to do web development, the development platform is ASP SQL Server. But the author recommends not to use ASP development, because in submission of Chinese characters, both JSP is more convenient than ASP, of course, ASP is no longer in the WAP 2.0 platform, but in the near year WAP1. 2 Browser's mobile phone still account for most, and whether China Unicom is also developed by China Unicom or China Mobile, it is convenient to develop JSP development. The most important thing is that JSP or .NET in terms of performance is better than ASP, so I suggest that you use JSP / ASP.NET to develop WAP. Here I explain as an example: 1.1. How to establish a WAP website 1.1.1 on IIS. Step 1: Create a site folder first you want to create a new site file independent of your primary site Clip (if the site is built on the same server) so that the changes you have to do will not affect other sites. 1.1.2. Step 2: Create a new MIME type in the IIS platform first select the properties of the WAP site, join the MIME type, then select the HTTP Headers tab. In the MIME Map section, click the File Type and enter the following information: Associated Extension MIME Typewml text / vnd.wap.wmlwmlc application / vnd.wap.wmlcwbmp image / vnd.wap.wbmpwmlsc application / vnd.wap.wmlscriptcwmls text / vnd.wap .wmlscriptwsc coplication / vnd.wap / WMLScriptc
After completion, the following types will be displayed:
1.1.3. Step 3: Now, you can add your website content to the site folder. 1.2. WAP simulator WAP simulator has a lot of recognition of syntax detection is M3gate, which is most convenient to use Opera. It is recommended that everyone uses M3gate when testing programs, if it does not check the problem, basically not on the phone. There will be a problem; use Opera to use Opera, but it can support WML syntax, which is easy to use, similar to IE operation.
1.3. Specific example: 1.3.1. Asp <% response.contentType = "text / vnd.wap.wml"%> XML Version = "1.0" encoding = "gb2312"?> p> <% response.write (" welcome ")%> Return to the upper stage p> <% display ();%> p> Using system.web.ui.htmlControls; Namespace Test_wap {/// protected void display () {response.write ("welcome");} #Region Web Form Designer Generated Code Override Protected Void OnNit (Eventargs E) {// // Codegen: This call is required for the ASP.NET Web Form Designer. // InitializeComponent (); base.onit (e);} /// The business in WAP, the Rati Bell download, and the income of these two business is also 80% of China Unicom and China Mobile WAP. Everyone has the most problems here. In the next section, I use China Unicom Trybell to download business as an example to explain the development of downloading business. (to be continued)