Figure 38 Testing a mobile Web application with the Openwave simulator

Openwave Simulator Windows

Go http7 localhost MyFirstMobileApp defau Go http7 localhost MyFirstMobileApp defau Actual WAP devices always connect to the Internet via a special proxy, called a WAP gateway. This gateway acts as an important bridge between the wireless WAP protocols used by the phone and the HTTP over TCP IP used by the wired Web. When you test with a real device, you must configure it to connect via a WAP gateway, operated by your wireless service provider, or in some cases, your company. Fortunately, the...

Listing 99 DataUpdateExampleaspx

lt Page language c AutoEventWireup true gt lt Register TagPrefix mobile Assembly System.Web.Mobile gt lt mobile Form id Form1 runat server Paginate True gt lt mobile ObjectList id ObjectList1 runat server OnItemCommand OnEditCommand gt lt Command Name EditCommand Text Edit Details gt lt mobile ObjectList gt lt mobile Form gt lt mobile Form id Form2 runat server gt lt mobile Label id Label1 runat server text Edit Author Details StyleReference title gt lt mobile Label runat server gt Author ID...

Defining XML Web Service Behavior

When you created your first XML Web service, you placed a WebMethod directive before the method you wanted to make publicly accessible as a Web method. This directive accepts a number of optional attributes that allow you to define certain behaviors and characteristics of the XML Web service method. Table 12-1 outlines the most common attributes of this directive. Table 12-1. Common Attributes of the WebMethod Directive Table 12-1. Common Attributes of the WebMethod Directive When the value is...

Viewing DataSet XML in Internet Explorer

If the format of a DataSet returned as XML interests you, you can view the XML using a desktop Web browser. Simply type the URL of the XML Web service you want to use into the Address box, followed by MethodName , where MethodName is the name of a method that returns a DataSet. Remember, you're accessing the XML Web service using one of the supported open standards HTTP GET. The XML response returns to the browser. Browsers with integral XML support, such as Internet Explorer will format and...

Warning Fuv

The names of the XML elements in the advertisement configuration file are case sensitive. For example, lt ImageUrl gt is a valid XML element name, but lt ImageURL gt isn't. lt xml version l.0 gt lt AlternateText gt Buy this lt AlternateText gt lt Keyword gt Software lt Keyword gt lt Ad gt lt Another advertisement defined here -- gt lt mobile AdRotator runat server id id Font-Size NotSet Normal Small Large Font-Bold NotSet False True Font-Italic NotSet False True ForeColor foregroundColor...

Wireless Communication

Wireless communication has long captivated the imagination of consumers. Even as far back as the 1920s, wireless technology was everywhere. For example, a huge expansion of radio broadcasting was underway, fueled by the money of eager investors many of whom soon regretted their enthusiasm once the stock market crashed in 1929 . Unlike broadcast radio, which sends the same message to multiple receiving devices, paging and cellular phone communications use wireless technology to communicate with...

Chapter 15 Creating User Controls and Custom Controls

The Mobile Internet Toolkit provides a rich selection of mobile controls that offer the functionality you need to build compelling mobile Web applications. However, you might find yourself repeatedly implementing the same piece of user interface functionality, using the same combination of controls. By encapsulating this user interface functionality in a reusable component, you can take advantage of a major strength of ASP.NET user controls. User controls are easy to build and to apply. But for...

Introducing the Controls Class Hierarchy

In Chapter 4, we introduced you to the programming techniques for mobile Web Forms. A mobile Web Forms page consists of a source file containing directives such as the Page directive and server controls written in server control syntax sometimes referred to in the product documentation as the persistence format . This Extensible Markup Language XML format code represents the visual elements of your mobile Web Forms page. You can also include code blocks within the .aspx file however, you...

Implementing the OnDataBind Event

You add public events to your control the same way you do for controls built by inheritance or composition. The standard data bound controls expose the ItemDataBind event, which an application developer can trap to implement custom data binding. It makes sense to implement this event for our custom control. To implement the ItemDataBind event, declare a public delegate for the event handler. You declare this delegate in a source file, inside the namespace but outside any class definitions...

Chapter 4 Dynamic Mobile Applications

In Chapter 3, you learned how to build several simple mobile Web applications. In this chapter, you'll learn how to create dynamic mobile applications. Creating dynamic mobile applications involves writing code to manipulate the methods and properties of mobile Web Forms controls and to respond to the events those methods and properties raise. In this chapter, we'll show you how to choose a .NET programming language and adopt a coding technique. We'll also introduce you to Visual C ,...

Extensible Device Support Architecture

The first release of the Mobile Internet Toolkit supports a number of WML 1.1 and WML 1.2 devices, HTML 3.2 clients such as Pocket Internet Explorer, and cHTML 1.0 devices. The toolkit's device support architecture is extensible. Therefore, updates to the toolkit will undoubtedly support additional genres, such as WML 2.0 and cHTML 1.1. If you don't want to wait for Microsoft to release support for a new device, you can add the necessary support yourself. In addition, Microsoft recognizes that...

Setting Up the Openwave Simulator

Openwave Simulator Windows

Openwave is the company formed from the merger of Phone.com and Software.com. Phone.com was itself formerly known as Unwired Planet, which was responsible for devising the HDML markup language for mobile devices, a predecessor of WAP. Today, Openwave claims that 70 percent of the world's Internet-enabled phones use their mobile browser software. The Mobile Internet Toolkit version 1.0 release includes support for devices from Alcatel, Motorola, Samsung, Sanyo, Siemens, Panasonic, Casio, Denso,...

Understanding Naming Containers

Developers frequently use declarative data binding in templates that customize the output of the List and ObjectList controls. The lt ItemTemplate gt and lt AlternatingItemTemplate gt replace the normal rendering of an item displayed in a list, so you need to access the properties of the source data item you're displaying in order to display the list item. To do so, you must understand the correct naming syntax. Accessing Data Items in lt ItemTemplate gt and lt AlternatingItemTemplate gt...

SelectionList Controls

As we mentioned, this control is appropriate for displaying small lists of items. It doesn't support internal pagination, but it offers presentational options that allow you to include drop-down lists, combo boxes, and radio buttons on devices that support them. The control is in single-selection mode when the SelectType is DropDown, ListBox, or Radio. CheckBox or MultiSelectListBox indicates multiselect mode. The SelectionList is used declaratively as shown in this section. Items that display...

Testing with a Mobile Phone Emulator

You'll find Internet Explorer an adequate development tool for performing the initial testing of an application's functionality. However, one of the most powerful features of the Mobile Internet Toolkit is that it can render your application on different client browsers, each with its own capabilities and possibly even requiring a completely different markup language. You should test your application on devices that are likely to access it in the real world. You use the mobile Web Forms...