Receiving username password in asp.net webform sent from android app
<p>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.</p>

<p>My android code is as follows:</p>

<pre><code>    public void postLoginData() {
    HttpClient httpclient = new DefaultHttpClient();
    HttpPost httppost = new HttpPost("http://xyz/Default.aspx"); 
    try {
        List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(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();
    }
   }    
</code></pre>
