private void BindGetLogin(string mobileno) { try { string uid = Configuration.SuvidhaUser; string pin = Configuration.SuvidhaPin; string URL = "http://recharge.suvidhaarecharge.com/api/MoneyTransfer/GetLogin?Username="******"&Password="******"&Mobile=" + mobileno + ""; var httpWebRequest = (HttpWebRequest)WebRequest.Create(URL); httpWebRequest.Method = WebRequestMethods.Http.Get; httpWebRequest.ContentType = "application/x-www-form-urlencoded"; 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); string mobile = cr.Mobileno; string balance = cr.Balance; string requestno = cr.RequestNo; string card = cr.CardExists; string errormsg = cr.ErrorMsg; string ressponse = cr.Response; string message = cr.Message; string code = cr.Code; Int32 ac_beneficiary = cr.beneficiary.Count; string benefcode = cr.beneficiary[0].BeneficiaryCode; //string benefname = cr.beneficiary[1].BeneficiaryName; //string beneftype = cr.beneficiary[2].BeneficiaryType; //string accountno = cr.beneficiary[3].AccountNumber; //string accounttype = cr.beneficiary[4].AccountType; //string beneifsc = cr.beneficiary[5].IFSC; //string active = cr.beneficiary[6].Active; Session["BenfCode"] = benefcode; string accountno = ddAcountno.SelectedItem.ToString(); string rtID = GetApiEditID(accountno, mobileno); if (ressponse == "SUCCESS") { obj_wallet.UpdateAPIBeneLogDetail(requestno, benefcode, message, rtID); } else { lblMessage.ForeColor = Color.Red; lblMessage.Text = errormsg; } } } catch { } }