×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    5

    J2ME and ASP.NET

    Hi,
    I want to send data from a Java ME application to an ASP.NET website. I decided to use an http post, the thing is I can't get it to work. I can't figure out where in my ASP.NET application I should accept the data. I tried putting the code in the page_load event, but what if the ASP.NET page isn't in the middle of loading when it receives the data? Once the data is received I plan to store it in an SQL server.
    I honestly have no idea how to go about doing this, any tips on what I should be doing would be highly appreciated.
    Last edited by Natique; 2011-08-24 at 19:28. Reason: typo

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: J2ME and ASP.NET

    Quote Originally Posted by Natique View Post
    Hi,
    I tried putting the code in the page_load event, but what if the ASP.NET page isn't in the middle of loading when it receives the data? Once the data is received I plan to store it in an SQL server.
    Yes, page_load should be ok - for more details on ASP.NET refer to http://www.w3schools.com/aspnet/default.asp or MSDN
    The ASP.NET page will receive the data in page_load event without any issue - the page launch is trigger by the HTTP Post request itself - and then its perfectly OK if you load the data in page_load event - as the page is reloaded everytime the web server gets the HTTP post request - it can never be in middle of loading when it receives the data - as every new HTTP call will create a new instance of the ASP.NET page to read the data.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    5

    Re: J2ME and ASP.NET

    Thanks, I got it working =)

Similar Threads

  1. J2ME image to byte[] asp.net web service
    By leonvian in forum Mobile Java General
    Replies: 10
    Last Post: 2010-12-03, 06:16
  2. Client server data exchange by j2me and asp.net
    By prithwi in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-10-20, 09:09
  3. House automation through mobile phones using ASP.NET and VB.NET
    By omer13 in forum General Development Questions
    Replies: 0
    Last Post: 2008-08-29, 04:06
  4. Replies: 0
    Last Post: 2008-07-12, 00:46
  5. using j2me + asp.net
    By karfei00 in forum Symbian
    Replies: 0
    Last Post: 2004-07-22, 10:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×