Web Hosting Forum - A Web Hosting community for Webmasters


Divi WordPress Theme

Author Topic: Developing applications for BB, iPhone and J2ME in ASP.Net  (Read 3085 times)

0 Members and 1 Guest are viewing this topic.

Offline Edhouse

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
Developing applications for BB, iPhone and J2ME in ASP.Net
« on: March 26, 2010, 03:34:04 PM »
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.

Code: [Select]
<%@ 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:
Code: [Select]
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.

Divi WordPress Theme
Tags:
 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1451 Views
Last post August 24, 2012, 12:30:45 PM
by annahussy
1 Replies
844 Views
Last post September 17, 2014, 10:53:27 AM
by WebhostingTalk
0 Replies
418 Views
Last post May 18, 2016, 12:53:06 PM
by JasmineEmans