Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Source Codes E-Books Downloads Contact Us About Us

.Net Mobile
.NET Mobile Introduction
.NET Mobile Example
.NET Mobile Emulators
.NET Mobile Forms
.NET Mobile Events
.NET Mobile Input
.NET Mobile Input Validation
.NET Mobile Lists
.NET Mobile Selections
.NET Mobile Images
.NET Mobile Utilities

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


.NET Mobile Lists
Previous Next


There are different input and display properties of the mobile List Control supports .



Introduction to the List Control

A static list of items will be displayed on the List control. Use an SelectionList control to enable users to select an item. Use an ObjectList control to view information from a database in tabular format. A List control must be placed within the Form or Panel control, or inside the control's template on a mobile Web page. You can also drag it onto a mobile user control page.

Add items to a list by clicking the ellipsis button in the Items box in the Properties window, and then using the List Properties dialog box. The number of items that the list contains can be observed by settin the ItemCount property. The list will be paginated on some devices. Set the ItemsPerPage property to the preferred number of list items to be displayed on each page.

The List control can populate its items and set property values dynamically based on values in a data source, using data binding. To bind the control to data, set the DataSource property to an object that implements the IEnumerable interface, and set the DataMember property to the data source's member (such as a dataset table) to read from when the control performs data binding. The DataTextField and DataValueField properties bind data to the Text and Value properties, respectively.

Set the appearance of the List control with the Alignment, ForeColor, Font, StyleReference, and Wrapping properties. To prevent a line break after a List control, set its BreakAfter property to false.



How to: Add and Configure a List Control

To add a List control to an ASP.NET mobile Web Forms page

  1. Drag a List control from the Mobile Web Forms tab of the Toolbox onto a Form or Panel control, or inside a control's template on a mobile Web page. You can also drag it onto a mobile user control page.
  2. In the Properties window, click the ellipsis button ASP.NET Mobile Designer ellipse in the Item box. List Properties dialog box is displayed.
  3. Enter the item to appear in the list by doing the following steps:

    1. First click Create new item.
    2. Second in the Item Text box, enter the text for that item.
    3. Finally in the Value box, enter a value. This is optional



Selecting from a List
<%@ Page
Inherits=
"System.Web.UI.MobileControls.MobilePage"%>
<%@ Register
TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<script runat="server">
Sub Show_Price(sender As Object,e As ListCommandEventArgs)
text1.Text=e.ListItem.Text & "=" & e.ListItem.Value
ActiveForm=f2
End Sub
</script>
<Mobile:Form id="f1" runat="server">
<Mobile:List runat="server"
OnItemCommand="Show_Price">
<Item text="Sumsung" value="$30,000" />
<Item text="LG" value="$32,000" />
<Item text="BPL" value="$34,000" />
</Mobile:List>
</Mobile:Form>
<Mobile:Form id="f2" runat="server">
<Mobile:Label runat="server" id="text1" />
</Mobile:Form>

Form 1: Displays the list of televisions

Sumsung        
LG        
BPL        




Form 2: This page displays a price.

Sumsung=$30,000        









Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previous Next

Keywords: .NET Mobile Lists,mobile ring tones,cell phone mobile,pay as you go mobile,mobile phone deals,internet phone directory,database lists,mobile tones,ringtones mobile,sms mobile,samsung mobile,mobile phones,gsm mobile,3g mobile,siemens mobile,lg mobile,mobile deals,sim mobile,sonyericsson mobile,mobile ericsson,mobile phone,t610 mobile,uk mobile,mobile ringtone,mobile prices,mobile camera,gprs mobile,mobile wireless,mobile handsets,k700i mobile,mobile handset,bluetooth mobile


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.