Windows Mobile 5.0 (2)

Source: Internet
Author: User

Before developing a mobile Web site, make the following preparations:

1. Confirm that IIS can be started normally.

2. vs2005 can create a web site normally in http mode.

3. There must be at least one simulator, Pocket PC, smartphone, and openwave.

Create an empty site, add a mobile Web form to the site, and name it index. aspx.

Switch the page to the design mode, and you can find that the form width on the page is very small and fixed, because the page will be consistent with the page displayed on the actual device.

The breakafter attribute of the Control. True indicates that an additional line break will be added after the control is render.

Differences between mobile Web form and web form:

1. Control tag Tag:

Web form: Control labels all use <asp: XXXX> </asp>. In the past, Atlas used to use <Atlas: XXXX> </Atlas>, and now it is integrated
<Asp: XXXX> </asp> format.

Mobile web form: Controls label with <Mobile: XXXX> </mobile>

2. controls that can be added to mobile Web form: (in design, toolbox)

Standard: can only be used for WM operations.

Mobile web form: it can be used in browsers of any mobile devices and may have different display effects.
Adjust the effect according to the device.

3. Multiple forms can be placed on mobile Web form, while web form can only have one form.

4. Mobile web form does not support masterpage, whereas web form does.

A website can contain web form and mobile Web form. The control on mobile Web form is recommended to use the control in the mobile Web form panel of toolbox. You can customize settings for browsers on different platforms. All mobile controls in mobile Web form can be customized.

Custom Controls:

In the Property overrides of properties of the control, select the edit button, select a filter from applied device filters, and click Edit to edit the parameter. Compare is used to compare the parameters based on the filter, argument indicates that if the comparison item is equal to this parameter, the filter conditions are met, and the results can be displayed according to your own definition.

Objectlist Control

You can use datasource to specify a data source. templates are supported. There are three types of templates.

1. header and footer templates

2. Item templates

3. Separator template.

Supplement: Once a template is set, the default display disappears.

I only set the header and footer, and did not set the item. However, the system considers that the item is also set, but there is no content. In addition, you can edit a template only after customizing the objectlist control.

Multiple forms can be placed on the mobile Web form. The form is loaded as a component. When a user sends a request to the web form of the form, all the forms on the web are loaded to reduce the time required for switching the form. Switching between different forms on the same web only transmits some data. You can use openwave to view the request and the corresponding effect.

In addition, because the buttons on the pages of openwave SDK 6.2.2 are displayed, instead of displaying the buttons when the focus is shifted, the softkey left button is displayed. openwave of earlier versions has this effect.

ReferenceArticle:

Customizing ASP. NET Mobile Web controls for specific devices

Related Article

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.