Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7641515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:56:34+00:00 2026-05-31T08:56:34+00:00

I have successfully sent (username/password) and received (true/false) values from my android app to

  • 0

I have successfully sent (username/password) and received (true/false) values from my android app to .php page.
Now i am trying to replace php page with aspx page
I am having problem while receiving data at Asp.net page (android app to asp.net page), so pls help me in this regard with asp.net page.

My android code is as follows:

    public void postLoginData() {
    HttpClient httpclient = new DefaultHttpClient();
    HttpPost httppost = new HttpPost("http://xyz/Default.aspx"); 
    try {
        List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
        nameValuePairs.add(new BasicNameValuePair("formData1", x));
        nameValuePairs.add(new BasicNameValuePair("formData2", y));
        httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

        HttpResponse response = httpclient.execute(httppost);
        result = inputStreamToString(response.getEntity().getContent()).toString();

    } catch (ClientProtocolException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }
   }    
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:56:35+00:00Added an answer on May 31, 2026 at 8:56 am

    // Successful asp.net code is as follows:

     public partial class _Default : System.Web.UI.Page 
     {
      string result,x,y;
       protected void Page_Load(object sender, EventArgs e)
       {
                 x = Page.Request.Form["formData1"];
                 y = Page.Request.Form["formData2"];
    
            if (x == y)
            {
                result = "true";
            }
            else
            {
                result = "false";
            }
    
            Response.Write(Server.HtmlEncode(result));
            Response.End();
        }
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used java mail(com.sun.mail.smtp) from my struts project. Mail is sent successfully but
I have successfully sent an email using the Google App Engine. However the only
I have this script: require_once Mail.php; $from = Stephen <username@nvrforget.com>;//Google apps domain $to =
I have created a script on mac OS X and it successfully sent an
I have successfully bound a control to a property on my page. The property
I have successfully migrated all my databases from 2008 to 2012 and mapped the
I have successfully sent email to a remote server using port their port 25
<?php session_start(); if(isset($_POST['username']) && ($_POST['password'])) { $con=mysql_connect(localhost,root,); if(!$con) { die('Could Not Connect:'.mysql_error()); } mysql_select_db(tcs,$con);
I have following code which successfully sent email using Gmail address. But when i
I have successfully sent simple email using this: SimpleMailMessage mailMessage = new SimpleMailMessage(); mailMessage.setTo("someone@abc.example");

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.