ASP practice-ASP (6)

Source: Internet
Author: User
Use WML and ASP to compile a dynamic mobile page
The combination of ASP and WAP can generate rich dynamic WML web pages, which can bring a lot of interesting content to WAP mobile phones. So how can they combine the two to generate dynamic web pages? In this article, I want to introduce how to use ASP to develop a dynamic WML application. For example, how can we build such an application when mobile phone e-banking is under fire? Here I don't want to discuss the establishment of the entire e-bank, because the content is too large and beyond the scope I can introduce. Here I just want to introduce it, how to use ASP to create an application to check your balance of payments. Considering its security, we need to use WTLS. However, this problem is complicated and can only be discussed later. We need to focus on how to use ASP to implement dynamic web pages.
Let's get started with so much nonsense! Assume that the bank account information is stored in the SQL database. If you use the corresponding network connection, you can access our system. In the example in this article, in order to simplify our account information, such as account number, customer name, security password, and account balance, in a table (tbl_account_info), there are four fields corresponding to accountno, custname, accountpin, and accountbal.
Next, I would like to briefly talk about programming ideas: first, the user enters our system interface and enters their account and security password (as shown in Figure 1). After verifying the login information, we allow users to log on to the system. We will give a welcome speech and output the balance between user names and accounts!
This is the general development idea. Well, now we can program based on this idea. I have a habit of writing dynamic code. I first write static code before trying to write dynamic code. I will also use this method in this article.
First, in the first part of the code, we will create a page to receive user login information.
Note the following code, which is the most basic WML code:
<% Response. ContentType = "text/vnd. wap. wml" %>
<? Xml version = "1.0" encoding = "gb2312"?> // Note that if you want to display Chinese characters, you must add encoding = "gb2312"
<! DOCTYPE wml PUBLIC "-// WAPFORUM // dtd wml 1.1 // EN"
<Card id = "login" title = "WAP e-bank">
Welcome to WAP e-bank <br/>
Enter an account: <input name = "accountno" type = "text" maxlength = "6"/>
Security password: <input name = "accountpin" type = "password" maxlength = "4"/>
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.