How to develop ASP.NET website For Mobile Phones

Last post 10-13-2009 11:00 PM by matrixvibe. 15 replies.

Sort Posts:

  • How to develop ASP.NET website For Mobile Phones

    05-06-2009, 9:35 AM
    • Member
      263 point Member
    • ganaparthi
    • Member since 12-19-2008, 5:41 AM
    • Hyderabad
    • Posts 126

     Hi To All,

                This is srinu,iam currently working with asp.net and c#,

    Normally we r developing website application in ASP.NET(for hosting in internet),

    But How to develop website for accessing in mobile devices(not windows bsed).

    I have no basic idea abt this please guid me,

    regards 

    srinu

    thanks in advance

     

  • Re: How to develop ASP.NET website For Mobile Phones

    05-06-2009, 9:54 AM
    Answer
    • Contributor
      5,207 point Contributor
    • DarthSwian
    • Member since 12-04-2007, 7:47 PM
    • Florida
    • Posts 1,017

     Mobile devices still use a browser so you can still do a .Net app. You can point your client from the main web app to the mobile one via a link on the browser based site or you can use code (see below) to determine if it is a mobile device. Mobile's can't handle a lot of the ajax and media, so you have to keep it very simple. There is plenty of info on designing web apps for mobiles from google.

     Here's a code (VB.Net snippet) for determining mobile devices.

     If Request.Browser("IsMobileDevice") = "true" OrElse Request.UserAgent.ToUpper().Contains("MIDP") OrElse Request.UserAgent.ToUpper().Contains("CLDC") Then
                myHtmlLink.Href = "~/css/mobile.css"
            Else
                myHtmlLink.Href = "~/css/Static.css"
            End If

    "Hokey religions and ancient weapons are no match for a good blaster at your side."
  • Re: How to develop ASP.NET website For Mobile Phones

    05-07-2009, 9:45 AM
    Answer
    • Member
      119 point Member
    • olta
    • Member since 08-25-2007, 12:11 PM
    • Tirane
    • Posts 69

    Hello,

    U can use VS2008 , ASP.NET web forms for developing mobile applications. In vs2008 there are not any more mobile web forms, u can use perfectly asp.net webforms,the difference is that you have to project the data as looked in mobile, I mean you have to work with small sizes. You can test then with emulators. For redirectin the web application in mobile version if it is accessed from a mobile device there are a lot of free codes, only search on google.

    If its not u wanted, please let me know !

  • Re: How to develop ASP.NET website For Mobile Phones

    05-07-2009, 1:11 PM
    Answer
    • Contributor
      5,207 point Contributor
    • DarthSwian
    • Member since 12-04-2007, 7:47 PM
    • Florida
    • Posts 1,017

    olta:

    Hello,

    U can use VS2008 , ASP.NET web forms for developing mobile applications. In vs2008 there are not any more mobile web forms, u can use perfectly asp.net webforms,the difference is that you have to project the data as looked in mobile, I mean you have to work with small sizes. You can test then with emulators. For redirectin the web application in mobile version if it is accessed from a mobile device there are a lot of free codes, only search on google.

    If its not u wanted, please let me know !

     

     

    So basically, you just repeated what I wrote.

    "Hokey religions and ancient weapons are no match for a good blaster at your side."
  • Re: How to develop ASP.NET website For Mobile Phones

    05-11-2009, 10:24 AM
    Answer

    Hi Dears,

    I have a asp.net website.I want to develop it for mobile also.Can any buddy tell me ,what software and api's does I would require to download ?.How to check and design the website for mobiles. Kindly send me useful link for learning asp.net for mobile

     

    With Regard,

    Ashraf.

     

  • Re: How to develop ASP.NET website For Mobile Phones

    05-12-2009, 6:34 AM
    Answer
    • Member
      57 point Member
    • sandydotnet
    • Member since 04-07-2009, 12:26 PM
    • Posts 49

     which version of visual studio  you are using?? if it is 2008. goto below link and follow the instructions.

    http://geekswithblogs.net/ranganh/archive/2008/04/01/mobile-web-forms-in-visual-studio-2008.aspx

     

  • Re: How to develop ASP.NET website For Mobile Phones

    05-12-2009, 7:36 AM
    Answer
    • Member
      263 point Member
    • ganaparthi
    • Member since 12-19-2008, 5:41 AM
    • Hyderabad
    • Posts 126

     hi thanks for giving me this link its working fine.

    but i am confused using the contrlos 

    can u send me any  sample applications

     thanks and regards

    srinu

  • Re: How to develop ASP.NET website For Mobile Phones

    05-12-2009, 7:47 AM
    Answer
    • Member
      57 point Member
    • sandydotnet
    • Member since 04-07-2009, 12:26 PM
    • Posts 49

    you can use mobile controls which are available in toolbox. here is the sample code

     

    mobile:Panel Runat="server" ID="pnl" StyleReference="style1" >

    <mobile:Image ID="imgLogin" Runat="server" ImageUrl="~/Images/DSC01618.JPG" ></mobile:Image>

    <mobile:Label Runat="server" BreakAfter="False" ID="lblName" >Name</mobile:Label>

    <mobile:TextBox Runat="server" BreakAfter="False" ID="txtName" Alignment="Center"></mobile:TextBox>

    <mobile:RequiredFieldValidator Runat="server" ID="r" Alignment="Right" ErrorMessage="Please eneter data" ControlToValidate="txtName"></mobile:RequiredFieldValidator>

    &nbsp;

    <mobile:AdRotator Runat="server" Alignment="Center" AdvertisementFile="D:\adds.xml"></mobile:AdRotator>

    <mobile:Label Runat="server" BreakAfter="False" StyleReference="MyCommand" ID="lblPassword" Alignment="Left" >Password</mobile:Label>

    <mobile:TextBox StyleReference="MyCommand" Runat="server" BreakAfter="False" ID="txtPassword" Password="True" Alignment="Center"></mobile:TextBox>

    <mobile:CompareValidator Runat="server" Alignment="Right" ID="c" ControlToCompare="txtName" ControlToValidate="txtPassword" ErrorMessage="Not comparable"></mobile:CompareValidator>

    <br></br>

    <mobile:Command StyleReference="MyCommand" BreakAfter="False" Runat="server" ID="cmdLogin" OnClick="cmdLogin_Click" Alignment="Right" >Login</mobile:Command>

     

    hope it will helps you. if not please let me know.

  • Re: How to develop ASP.NET website For Mobile Phones

    05-12-2009, 8:11 AM
    Answer
    • Member
      263 point Member
    • ganaparthi
    • Member since 12-19-2008, 5:41 AM
    • Hyderabad
    • Posts 126

     thank u..for giving me suggestions .

    how can i bind the data 

    i tried using following control but its not showing all records in the table.it is showing only one column,

       <mobile:ObjectList ID="objList" Runat="server"></mobile:ObjectList>

    can u exp[lain me how to bing the data from the back end.

    thanks

  • Re: How to develop ASP.NET website For Mobile Phones

    05-12-2009, 8:21 AM
    Answer
    • Member
      57 point Member
    • sandydotnet
    • Member since 04-07-2009, 12:26 PM
    • Posts 49

    try this

     

      ArrayList arr = new ArrayList();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                arr.Add(new Task("Tomorrow's work", "Yes", 1));
                arr.Add(new Task("Today's work", "Yes", 1));
                arr.Add(new Task("Yesterday's work", "No", 1));


                Session["MyArrayList"] = arr;

                ObjectList1.DefaultCommand = "Default";
                ObjectList1.LabelField = "TaskName";
                ObjectList1.MoreText = "Click for Details";
                ObjectList1.DataSource = arr;
               
                ObjectList1.DataBind();
            }


        }

  • Re: How to develop ASP.NET website For Mobile Phones

    08-12-2009, 8:23 AM
    Answer
    • Contributor
      2,136 point Contributor
    • oidldb
    • Member since 05-27-2009, 9:46 AM
    • Romania
    • Posts 400

    Any suggestions for VS 2005?


    Thank you and regards,
    Dani

    P.S. Please mark as answer if this helps.
  • Re: How to develop ASP.NET website For Mobile Phones

    10-13-2009, 9:52 AM
    Answer
    • Member
      28 point Member
    • Activate
    • Member since 10-09-2009, 4:26 PM
    • Posts 4

    Hello,

    I thought the mobile controls in Visual Studio 2008 are obsolete? 

    Could anyone explain why to use them, or not?

    Thanks!

     Jeroen

  • Re: How to develop ASP.NET website For Mobile Phones

    10-13-2009, 9:52 AM
    Answer
    • Member
      28 point Member
    • Activate
    • Member since 10-09-2009, 4:26 PM
    • Posts 4

    Hello,

    I thought the mobile controls in Visual Studio 2008 are obsolete? 

    Could anyone explain why to use them, or not?

    Thanks!

    Jeroen

  • Re: How to develop ASP.NET website For Mobile Phones

    10-13-2009, 11:42 AM
    Answer
    • Member
      358 point Member
    • matrixvibe
    • Member since 07-23-2009, 6:22 AM
    • Posts 78

    Hello Jeroen

    VS2005 has templates for Mobile Forms which VS2008 is not having. There is a external downlad for template, you can find more information here Visual Web Developer Team Blog Post

    VS2008 is not having mobile controls thinking all modern phones comes with support of xhtml , HTML, CSS, JavaScript so web forms can work very well.

    So it depends of what types of mobile devices you are tagetting for your application.

    But whether you use mobile forms or web forms main thing is how to customize you mobile web application as per the capabilities supported by mobile device requesting mobile website. To perform this you should be having accurate "Mobile Device Capabilities" information so that mobile web application can be customized for variety of mobile devices as per the capability supported.

    If you want more info on how to retrive information of "Mobile Device Capabilities" please take a look at http://www.51degrees.mobi/Products/NETMobileAPI/tabid/86/Default.aspx you will get more idea.

    Hope above information helps you

    Thanks

  • Re: How to develop ASP.NET website For Mobile Phones

    10-13-2009, 12:30 PM
    Answer
    • Participant
      1,879 point Participant
    • SKT_01
    • Member since 04-17-2007, 9:31 AM
    • Germany
    • Posts 424

    Hello matrixvibe,

    do you already have mobile Ajax web applications, HTML 5 client side storage and widgets?Wink

    Thank's!

     

Page 1 of 2 (16 items) 1 2 Next >