Click here to Skip to main content
15,911,786 members

Comments by Gowtham B (Top 3 by date)

Gowtham B 13-Dec-14 8:55am View    
Hi am using same like alert box but the problem is am not getting error instead of it will take some more time and retrieved data properly. some times the small function also take more time and returned data
Gowtham B 13-Dec-14 8:44am View    
This is my webmethod function

[WebMethod]
public borrowercls[] load_borrower_list()
{
string query = string.Empty;
con.mycon();
List<borrowercls> lt_brlist = new List<borrowercls>();
query = "select bloan.borrower_id, bloan.bor_purpose, bloan.bor_amount, bloan.interest, bloan.loan_duration from borrower_required_loan_details bloan, borrower_pdetails bpdetails where bpdetails.profile_agreed='1' and bloan.borrower_id = bpdetails.borrower_id";
DataTable dt = dtdal.dt_return(query);
if (dt.Rows.Count > 0)
{
foreach (DataRow dr in dt.Rows)
{
borrowercls hlist = new borrowercls();
hlist.brid = dr["borrower_id"].ToString();
hlist.br_amount = dr["bor_amount"].ToString();
hlist.br_purpose = dr["bor_purpose"].ToString();
hlist.br_interest = dr["interest"].ToString();
hlist.br_duration = dr["loan_duration"].ToString();
hlist.error = "true";
lt_brlist.Add(hlist);
}
}
else
{
borrowercls hlist = new borrowercls();
hlist.error = "false";
lt_brlist.Add(hlist);
}
return lt_brlist.ToArray();
}
Gowtham B 19-Sep-13 2:17am View    
In my page load am getting some request query string value and assigned that to session like this

Session["fname"] = Request.Querystring["name"];

Session["lname"] = Request.Querystring["age"];

Session["email"] = Request.Querystring["email"];

and paypal payment code is

string redirecturl = "";
string amount = Session["dollarrate"].ToString();
// Mention URL to redirect content to paypal site
redirecturl += "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + ConfigurationManager.AppSettings["paypalemail"].ToString();

// First name i assign static based on login details assign this value
redirecturl += "&first_name=name";

// City i assign static based on login user detail you change this value
redirecturl += "&city=city";

// State i assign static based on login user detail you change this value
redirecturl += "&state=city";

// Product Name
redirecturl += "&item_name=Property Verification Charge";

// Product Amount
redirecturl += "&amount=" + amount;

// Business contact id
redirecturl += "&business=email";

//Shipping charges if any
redirecturl += "&shipping=5";

// Handling charges if any
redirecturl += "&handling=5";

// Tax amount if any
redirecturl += "&tax=5";

// Add quatity i added one only statically
redirecturl += "&quantity=1";

//Currency code
redirecturl += "¤cy=USD";

//Success return page url
redirecturl += "&return=ConfigurationManager.AppSettings["SuccessURL"].ToString();

// Failed return page url
redirecturl += "&cancel_return=" + ConfigurationManager.AppSettings["FailedURL"].ToString();
Response.Redirect(redirecturl);

after click and payment is properly finished but the paypal page is redirected success page am not get the session value. it all is going to null. but this code is working properly in local server but not in online server...