Click here to Skip to main content
16,009,643 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to call a button click event of a parent window in child window Pin
Michael Sync23-Dec-07 14:44
Michael Sync23-Dec-07 14:44 
Questionhow to show a hidden column values in the grid view in a tool tip Pin
jagan12322-Dec-07 19:10
jagan12322-Dec-07 19:10 
AnswerRe: how to show a hidden column values in the grid view in a tool tip Pin
Christian Graus22-Dec-07 19:40
protectorChristian Graus22-Dec-07 19:40 
GeneralEnabling other controls on the page on doubleclick of a row in the GirdView control Pin
Janu_M22-Dec-07 17:14
Janu_M22-Dec-07 17:14 
QuestionHow to make photos "appear clickable" ? Pin
scm22ri22-Dec-07 10:46
scm22ri22-Dec-07 10:46 
AnswerRe: How to make photos "appear clickable" ? Pin
Christian Graus22-Dec-07 10:53
protectorChristian Graus22-Dec-07 10:53 
AnswerRe: How to make photos "appear clickable" ? Pin
Venkatesh Mookkan23-Dec-07 15:39
Venkatesh Mookkan23-Dec-07 15:39 
Generalpaypal ver iam wrong Pin
Mogaambo22-Dec-07 6:03
Mogaambo22-Dec-07 6:03 
// iam testing in sandbox enviroment and it is shows the following error

//"ErrorCode=10501&Desc=Invalid Configuration
//&Desc2=This transaction cannot be processed due to an invalid merchant configuration."
// ver iam wrong i enter all the correct details

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using com.paypal.sdk.services;
using com.paypal.sdk.profiles;
using com.paypal.sdk.core;
using com.paypal.sdk;
using com.paypal.sdk.util;
using System.ComponentModel;
using System.Web.SessionState;
public partial class paymantapi : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
com.paypal.sdk.services.NVPCallerServices caller = new com.paypal.sdk.services.NVPCallerServices();
IAPIProfile profile = ProfileFactory.createSignatureAPIProfile();
profile.APIUsername = "seller_1197901374_biz_api1.rediffmail.com";
profile.APIPassword = "1197901386";
profile.Subject = string.Empty;
profile.APISignature = "AJPRAFDEADN4KU5-uQOlH6F4lndTAo8rfA-5axq.xADfGzVZNCtI.U-A";
caller.APIProfile = profile;
NVPCodec encoder = new NVPCodec();
encoder["METHOD"] = "DoDirectPayment";
encoder["PAYMENTACTION"] = "sale";
encoder["AMT"] = "59.45";
encoder["CREDITCARDTYPE"] = "VISA";
encoder["ACCT"] = "4356645484999804";
encoder["EXPDATE"] = "1/2026";
encoder["CVV2"] = "125";
encoder["FIRSTNAME"] = "Test";
encoder["LASTNAME"] = "User";
encoder["STREET"] = "1 Main St";
encoder["CITY"] = "San Jose";
encoder["STATE"] = "CA";
encoder["ZIP"] = "95131";
encoder["COUNTRYCODE"] = "US";
encoder["CURRENCYCODE"] ="USD" ;
encoder["NOTIFYURL"] = "www.paypal.yashsoftech.com/ipn.aspx";
string pStrrequestforNvp = encoder.Encode();
string pStresponsenvp = caller.Call(pStrrequestforNvp);

NVPCodec decoder = new NVPCodec();
decoder.Decode(pStresponsenvp);
Response.Write(pStresponsenvp);
string strAck = decoder["ACK"];
if (strAck != null && (strAck == "Success" || strAck == "SuccessWithWarning"))
{
string pStrResQue = "TRANSACTIONID=" + decoder["TRANSACTIONID"] + "&" +
"AMT=" + decoder["AMT"] + "&" +
"AVSCODE=" + decoder["AVSCODE"] + "&" +
"CVV2MATCH=" + decoder["CVV2MATCH"];
Response.Redirect("DoDirectPaymentReceipt.aspx?"+pStrResQue);

}
else
{
string pStrError = "ErrorCode=" + decoder["L_ERRORCODE0"] + "&" +
"Desc=" + decoder["L_SHORTMESSAGE0"] + "&" +
"Desc2=" + decoder["L_LONGMESSAGE0"];

Response.Redirect("APIError.aspx?"+pStrError);

}
}
}
GeneralRe: paypal ver iam wrong Pin
Christian Graus22-Dec-07 9:23
protectorChristian Graus22-Dec-07 9:23 
GeneralRe: paypal ver iam wrong Pin
Paul Conrad22-Dec-07 9:33
professionalPaul Conrad22-Dec-07 9:33 
GeneralRe: paypal ver iam wrong [modified] Pin
Mogaambo22-Dec-07 20:27
Mogaambo22-Dec-07 20:27 
GeneralRe: paypal ver iam wrong Pin
Christian Graus22-Dec-07 22:34
protectorChristian Graus22-Dec-07 22:34 
Generalproblem with javascript Pin
morteza5722-Dec-07 5:43
morteza5722-Dec-07 5:43 
GeneralRe: problem with javascript Pin
Christian Graus22-Dec-07 9:25
protectorChristian Graus22-Dec-07 9:25 
GeneralRe: problem with javascript Pin
morteza5722-Dec-07 9:54
morteza5722-Dec-07 9:54 
GeneralRe: problem with javascript Pin
Christian Graus22-Dec-07 10:03
protectorChristian Graus22-Dec-07 10:03 
QuestionEnable linkButton form outer page Pin
Knowledgestudent22-Dec-07 0:48
Knowledgestudent22-Dec-07 0:48 
GeneralRe: Enable linkButton form outer page Pin
Paul Conrad22-Dec-07 9:29
professionalPaul Conrad22-Dec-07 9:29 
GeneralRe: Enable linkButton form outer page Pin
Venkatesh Mookkan23-Dec-07 16:01
Venkatesh Mookkan23-Dec-07 16:01 
AnswerASP.Net "is not accessible in this context because it is Protected" Pin
JEP_Dude10-Feb-09 16:16
JEP_Dude10-Feb-09 16:16 
AnswerRe: ASP.Net "is not accessible in this context because it is Protected" Pin
Knowledgestudent11-Feb-09 0:03
Knowledgestudent11-Feb-09 0:03 
GeneralCheck IsNumeric Pin
SreejithAchutan21-Dec-07 21:42
SreejithAchutan21-Dec-07 21:42 
GeneralRe: Check IsNumeric Pin
Christian Graus21-Dec-07 21:58
protectorChristian Graus21-Dec-07 21:58 
GeneralRe: Check IsNumeric Pin
SreejithAchutan21-Dec-07 22:05
SreejithAchutan21-Dec-07 22:05 
GeneralRe: Check IsNumeric Pin
pmarfleet21-Dec-07 22:36
pmarfleet21-Dec-07 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.