protected void btnSubmit_Click(object sender, EventArgs e)
    {
        try
        {
            string uid      = Configuration.SuvidhaUser;
            string pin      = Configuration.SuvidhaPin;
            string fname    = txtFirstname.Text;
            string lname    = txtLastname.Text;
            string mobileno = txtMobileno.Text;
            string URL      = "http://recharge.suvidhaarecharge.com/api/MoneyTransfer/CustomerRegistration?Username="******"&Password="******"&Mobile=" + mobileno + "&FName=" + fname + "&LName=" + lname + "";

            var httpWebRequest = (HttpWebRequest)WebRequest.Create(URL);

            string postData = "http://recharge.suvidhaarecharge.com/api/MoneyTransfer/CustomerRegistration?Username="******"&Password="******"&Mobile=" + mobileno + "&FName=" + fname + "&LName=" + lname + "";
            httpWebRequest.Method        = WebRequestMethods.Http.Post;
            httpWebRequest.ContentType   = "application/x-www-form-urlencoded";
            httpWebRequest.ContentLength = postData.Length;

            using (StreamWriter writer = new StreamWriter(httpWebRequest.GetRequestStream()))
            {
                writer.Write(postData);
            }

            var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
                var result = streamReader.ReadToEnd();
                JavaScriptSerializer js = new JavaScriptSerializer();
                CustRegistraion      cr = js.Deserialize <CustRegistraion>(result);
                int    user_id          = cr.UserId;
                string requestno        = cr.requestNo;
                string errormsg         = cr.ErrorMsg;
                Session["OtcRef"]   = requestno;
                Session["Mobileno"] = mobileno;

                if (errormsg != null)
                {
                    lblMessage.ForeColor = Color.Red;
                    lblMessage.Text      = errormsg;
                }
                else
                {
                    Int32  custid       = Convert.ToInt32(ddUserIDno.SelectedValue);
                    string userIdentyno = ddUserIDno.SelectedItem.ToString();

                    obj_wallet.AddAPIcustomerRegistration(user_id, requestno, custid, userIdentyno);
                    lblMessage.ForeColor = Color.Green;
                    lblMessage.Text      = "OTP send on registered mobile";
                }
                txtFirstname.Text = "";
                txtLastname.Text  = "";
                txtMobileno.Text  = "";
            }
        }
        catch
        { }
    }