• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers


Jetpack
Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

WordPress Hosting Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

Developing applications for BB, iPhone and J2ME in ASP.Net

Started by Edhouse, March 26, 2010, 03:34:04 PM


WordPress Hosting


Edhouse

There are lots of various frameworks for developing mobile applications without knowledge device's API. But one framework really captivated me, because it supports almost all devices and three languages: ASP.Net, PHP and Java.

iPFaces Mobile Application Framework is for creating native and form-oriented applications for iPhone, iPod Touch, iPad, BlackBerry and Mobile Java. The aim of this solution is to screen programmers completely out from the mobile platform itself and transfer the entire application logic to the central application server level. Distributor of this framework provides the user client applications for all devices named above as freeware. Through these apps user runs your application on your server.

iPFaces is distributed under GNU/GPL for community usage. http://www.ipfaces.org/content/aspnet - this page is dedicated to starting with ASP.Net.

Now, I show you how to create your first mobile app - Hello World.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HelloWorld.aspx.cs" Inherits="HelloWorld._Default" %>   
   
<%@ Register Assembly="iPFaces.NET" Namespace="Org.IPFaces.Net.Controls" TagPrefix="ipf" %>   
   
<ipf:Form ID="form1" runat="server">   
    <ipf:Screen ID="screen1" runat="server" Title="iPFaces Form">   
        <ipf:Label ID="label1" runat="server"/>   
    </ipf:Screen>   
</ipf:Form> 

This file represents the visual representation of the application.

File HelloWorld.aspx.cs will look like:

using System;   
using System.Data;   
using System.Configuration;   
using System.Collections;   
using Org.IPFaces.Net.Controls;   
using Org.IPFaces.Net.Pages;   
   
namespace HelloWorld   
{   
    public partial class _Default : Org.IPFaces.Net.Pages.Page   
    {   
        protected void Page_Load(object sender, EventArgs e)   
        {   
            label1.Text="Hello World";   
        }   
    }   
}


How the result on iPhone will look like you can see in attachment. :)

This framework also supports elements on your devices, such as GPS Module, Compass or Camera. And the next benefit of this solution is that the simulation mode can be used in your browser. Look at http://examples.ipfaces.org. There's only one disadvantage, this framework can be used only for developing applications with forms. Not games. :(

This article is inspired and based on http://java.dzone.com/articles/ipfaces-mobile-application.