Blue Theme Orange Theme Green Theme Red Theme
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
6 Months Free & No Setup Fees ASP.NET Hosting!
Search :       Advanced Search »
Home » ASP.NET 2.0/3.5 » Microsoft Mobile Internet Toolkit (MMIT)

Microsoft Mobile Internet Toolkit (MMIT)

In this article you will get the knowledge of Mobile Web Forms controls. How they are use in ASP.NET? Mobile controls extend the power of the .NET Framework and Visual Studio to build mobile Web applications.

Author Rank :
Page Views : 13964
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Nevron Gauge for SharePoint
Become a Sponsor
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Introduction:

 

The ASP.NET Mobile controls are formerly known as the Microsoft Mobile Internet Toolkit (MMIT). Mobile controls extend the power of the .NET Framework and Visual Studio to build Mobile Web applications.

 

The ASP.NET Mobile controls reduce the work required for developers to target a wide variety of browsers by eliminating the need to write and maintain numerous web applications each targeted to a specific browser.

 

The ASP.NET Mobile controls render the appropriate markup (HTML 3.2, WML 1.1, cHTML. XHTML) while dealing with different screen sizes, orientations and device capabilities.

 

Mobile Web Forms Controls:

 

Mobile Web Forms Controls generate markup language for different devices. These are ASP.NET server side controls that provide user interface elements such as:

 

  • List
  • Command
  • Call
  • Calendar
  • Form
  • Panel
  • Image, etc.

The Mobile controls generate the correct markup for the device that makes the request at execution time. As a result, you can write a Mobile application once and access it from multiple devices.

 

Because these Mobile controls are based on the ASP.NET controls, you can leverage your current desktop development skill set when creating mobile applications.

 

You can also reuse the same business logic and data access code that you use in your desktop application. Mobile and desktop Web Forms can reside in the same Visual Studio .NET project. This makes an application faster to develop and lowers your maintenance cost.

 

Mobile Web forms controls are as follows:

 

 

Figure 1: Mobile Web Form Controls.

 

Creating Mobile Web Form Controls:

 

There are the following steps for creating the Mobile Web Form Controls.

 

Step 1: For creating a Mobile Web project open the new Web site in Microsoft visual studio 2005. You will get the following window.

 

 

Figure 2: Open New Website.

 

Step 2: After open the New Website, go to the Solution Explorer right click on the Website and click on Add New item then you will get the following window:

 

 

Figure 3: Add New Item in Solution Explorer.

 

Step 3: Add a mobile Web Forms page to the project. You will see the following code-

 

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>

<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

 

Step 4: Drag a Mobile Web Forms control onto the form. Suppose we want to print Name and Address of any user in the Textbox. Then we drag two Textbox and two labels. Label is optional. The source code is as follows:

 

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl2.ascx.cs"Inherits="WebUserControl2"%>

<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls"Assembly="System.Web.Mobile" %>

<table cellpadding="0" cellspacing="0" border="2" height="50px" style="width: 33%">

 <tr>

  <td align="center" valign="top" style="padding-top:20px;">

   <mobile:Label ID="Label1" Runat="server" BackColor="Gold" Visible="False">User name</mobile:Label>

   <mobile:TextBox ID="TextBox1" Runat="server" BackColor="#FFFFC0" Visible="False"></mobile:TextBox>

   <mobile:Label ID="Label2" Runat="server" BackColor="Gold" Visible="False">Address</mobile:Label>

   <mobile:TextBox ID="TextBox2" Runat="server" BackColor="#FFFFC0" Visible="False"></mobile:TextBox>

  </td>

 </tr>

</table>

 

In the following figure two Labels and two Textbox are drag from the Mobile controls. So the design view of the source code is as follows:

 

 

 

Figure 4: Design view of the above source code.

 

Step 5: Double-click the control to write the logic.

 

Step 6: Rebuild the application.

 

Step 7: Run the application.

 

Mobile Internet Designer:

 

The Mobile Internet Designer extends the Visual Studio .NET IDE to create Mobile applications. After you install the Mobile Internet Designer, you can create and develop your Mobile application in the same way that you would develop a Windows Forms or Web Forms application.

 

The Mobile Internet Designer makes it fast and easy to build and maintain Mobile Web applications.

 

Device Capability Mechanism:

Accurate information about the display capabilities of the target device is essential for the successful rendering of Mobile controls. Mobile controls need the following information about a device:

 

  • Markup language (HTML, WML, cHTML)
  • Browser
  • Number of display lines
  • Cookie support
  • Screen size

The Mobile Internet Toolkit adds these mobile device capabilities to the server's machine.config file (desktop ASP.NET applications use this file to maintain device and browser information).

 

Advanced Features: Extensibility

 

Device adapter includes in the Mobile Internet Toolkit for a variety of mobile devices.

 

Through the device capabilities mechanism The Mobile Internet Toolkit supports device adapters for additional devices. You can create new aggregate controls from existing Mobile controls.

 

Conclusion:

 

The Mobile Internet Toolkit provides the technology and tools to build, deploy, and maintain sophisticated Mobile applications quickly. Additional device support can be added using the Mobile Internet Toolkit's extensibility features.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Purushottam Rathore

I am working as a Software Developer and has 4 years of experience on Microsoft Technology and having a Master Degree in Computer Application. I really like to work in the .NET platform. and working with ASP.NET 2.0/3.5, Web Services, WPF, WCF, Silverlight, AJAX, JavaScript, JQuery, Ado.net, MsAccess, SQL Server 2005/2008.

Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Comments
aslamo alikum by sara On April 24, 2010
well notes about mmit
thank you
i need to get a mmit s/w
plz help me
Reply | Email | Modify 
6 Months Free & No Setup Fees ASP.NET Hosting!
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.