TAILIEUCHUNG - Webmaster's Guide to the Wireless Internet part 41

Webmaster's Guide to the Wireless Internet part 41. The Webmaster’s Guide to the Wireless Internet provides the Wireless Webmaster with all of the tools necessary to build the next generation Internet. Packed with the essential information they need to design, develop, and secure robust, e-commerce enabled wireless Web sites. This book is written for advanced Webmasters who are experienced with conventional Web site design and are now faced with the challenge of creating sites that fit on the display of a Web enabled phone or PDA | 372 Chapter 9 Microsoft Mobile Internet Toolkit Figure MobileQuickStart Page Figure Web Application Using ASP When we click on the Submit button we print a message on the same page as shown in Figure . Notice that the name in the textbox is gone and the item in the selection list has been reset to the first item. Figure shows the ASP code for our sample Web application. Microsoft Mobile Internet Toolkit Chapter 9 373 Figure State Is Lost When the ASP Page Is Submitted Figure html b Tell us about yourself b form method post action Name input type text name userName br Which part of the world are you from select name partOfWorld option value Europe Europe option value Asia Asia option value United States of America United States of America select input type submit value submit if userName then i Welcome to userName from partOfWorld i end if html To ensure that the name and selection item remains selected after submission we must modify our codes as shown in Figure . 374 Chapter 9 Microsoft Mobile Internet Toolkit Figure html b Tell us about yourself b form method post action Name input type text name userName value userName br Which part of the world are you from itemSelected partOfWorld select name partOfWorld option if itemSelected Europe then SELECTED end if value Europe Europe option if itemSelected Asia then SELECTED end if value Asia Asia option if itemSelected United States of America then SELECTED end if value United States of America United States of America select input type submit value submit if userName then i Welcome to userName from partOfWorld i end if html And now our Web application will behave as we intend it to as shown in Figure . .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.