Hello There,

I have this code in my window application. i want to create the receiving web page using asp.net. i have example but it is written in php so i dont quite get it.. please guide me on this..

thank you..

Code:
private void SubmitData() 
        {
            try
            {
                String user = textBox1.Text;
                string pass = textBox2.Text;

                ASCIIEncoding encoding = new ASCIIEncoding();
                string postData = "user" + user + "&pass=" + pass;
                byte[] data = encoding.GetBytes(postData);

                WebRequest request = WebRequest.Create("http://localhost/myreports/webpages/postpage.aspx");
                request.Method = "POST";
                request.ContentType = "application/x-www-form-urlencoded";
                request.ContentLength = data.Length;

                Stream stream = request.GetRequestStream();
                stream.Write(data, 0, data.Length);
                stream.Close();

                WebResponse response = request.GetResponse();
                stream = response.GetResponseStream();

                StreamReader sr = new StreamReader(stream);
                MessageBox.Show(sr.ReadToEnd());

                sr.Close();
                stream.Close();
            }
            catch (Exception ex) 
            {
                MessageBox.Show("Error : " + ex.Message);
            }
        }