protected void btnOTP_Click(object sender, EventArgs e)
    {
        try
        {
            string uid    = Configuration.SuvidhaUser;
            string pin    = Configuration.SuvidhaPin;
            string otcref = "";
            if (Session["OtcRef"] != null)
            {
                otcref = Session["OtcRef"].ToString();
            }
            string otc      = txtOtp.Text;
            string mobileno = "";
            if (Session["Mobileno"] != null)
            {
                mobileno = Session["Mobileno"].ToString();
            }
            string URL = "http://recharge.suvidhaarecharge.com/api/MoneyTransfer/VerifyCustomerRegOtc?Username="******"&Password="******"&Mobile=" + mobileno + "&OtcRef=" + otcref + "&Otc=" + otc + "";

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

            string postData = "http://recharge.suvidhaarecharge.com/api/MoneyTransfer/VerifyCustomerRegOtc?Username="******"&Password="******"&Mobile=" + mobileno + "&OtcRef=" + otcref + "&Otc=" + otc + "";
            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 sedermobile      = cr.SenderMobile;
                string Otp       = cr.otc;
                string requestno = cr.requestNo;
                string Otpref    = cr.otcRef;
                string errormsg  = cr.ErrorMsg;
                string type      = cr.Type;

                string rtId = GetApiTID(Otpref);

                if (requestno == "Success")
                {
                    obj_wallet.UpdateAPIcustomerRegistOtc(user_id, sedermobile, Otp, requestno, Otpref, type, rtId);

                    lblMessage.ForeColor = Color.Green;
                    lblMessage.Text      = "Registration OTP verify successfully";
                }
                else
                {
                    lblMessage.ForeColor = Color.Red;
                    lblMessage.Text      = errormsg;
                }
            }
        }
        catch
        { }
    }