Click here to Skip to main content
15,906,296 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Pages in IIS (localhost) requiring login? Pin
Abhijit Jana13-Jan-09 16:49
professionalAbhijit Jana13-Jan-09 16:49 
GeneralRe: Pages in IIS (localhost) requiring login? Pin
MitchellBaldwin14-Jan-09 5:55
MitchellBaldwin14-Jan-09 5:55 
AnswerRe: Pages in IIS (localhost) requiring login? Pin
Aman Bhullar13-Jan-09 20:17
Aman Bhullar13-Jan-09 20:17 
GeneralRe: Pages in IIS (localhost) requiring login? [modified] Pin
MitchellBaldwin14-Jan-09 5:58
MitchellBaldwin14-Jan-09 5:58 
QuestionSession Timeout Alert Message and Redirect to login page. Pin
dsrao13-Jan-09 9:30
dsrao13-Jan-09 9:30 
AnswerRe: Session Timeout Alert Message and Redirect to login page. Pin
ToddHileHoffer13-Jan-09 13:36
ToddHileHoffer13-Jan-09 13:36 
GeneralRe: Session Timeout Alert Message and Redirect to login page. Pin
dsrao14-Jan-09 6:53
dsrao14-Jan-09 6:53 
QuestionPaypal Integration Pin
Sebastian T Xavier13-Jan-09 7:45
Sebastian T Xavier13-Jan-09 7:45 
Hi
In my online application I have to use paypal(Express checkout) for credit card processing. I have downloaded the required files given by them and added in my application, While compiling it gives an error The name 'UrlEncode' does not exist in the current context . The error occurs in the below given block of paypalfunction.cs(the class provided by paypal)

<br />
/// <summary><br />
    /// HttpCall: The main method that is used for all API calls<br />
    /// </summary><br />
    /// <param name="NvpRequest"></param><br />
    /// <returns></returns><br />
    public string HttpCall(string NvpRequest) //CallNvpServer<br />
    {<br />
        string url = pendpointurl;<br />
<br />
        //To Add the credentials from the profile<br />
        string strPost = NvpRequest + "&" + buildCredentialsNVPString();<br />
		strPost = strPost + "&BUTTONSOURCE=" + <big>UrlEncode</big>( BNCode );<br />
<br />
        HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);<br />
        objRequest.Timeout = Timeout;<br />
        objRequest.Method = "POST";<br />
        objRequest.ContentLength = strPost.Length;<br />
<br />
        try<br />
        {<br />
            using (StreamWriter myWriter = new StreamWriter(objRequest.GetRequestStream()))<br />
            {<br />
                myWriter.Write(strPost);<br />
            }<br />
        }<br />
        catch (Exception e)<br />
        {<br />
            /*<br />
            if (log.IsFatalEnabled)<br />
            {<br />
                log.Fatal(e.Message, this);<br />
            }*/<br />
        }<br />
<br />
        //Retrieve the Response returned from the NVP API call to PayPal<br />
        HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();<br />
        string result;<br />
        using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))<br />
        {<br />
            result = sr.ReadToEnd();<br />
        }<br />
<br />
        //Logging the response of the transaction<br />
        /* if (log.IsInfoEnabled)<br />
         {<br />
             log.Info("Result :" +<br />
                       " Elapsed Time : " + (DateTime.Now - startDate).Milliseconds + " ms" +<br />
                      result);<br />
         }<br />
         */<br />
        return result;<br />
    }<br />


Any help to solve this issue will be appreciated; Thanks in advnce...!!!

Sebastian
AnswerRe: Paypal Integration Pin
Abhijit Jana13-Jan-09 16:56
professionalAbhijit Jana13-Jan-09 16:56 
Questionsubmit specific data to iframe Pin
vjvjvjvj13-Jan-09 7:30
vjvjvjvj13-Jan-09 7:30 
QuestionGridView with HOver + vb.net [modified] Pin
K@313-Jan-09 4:16
K@313-Jan-09 4:16 
AnswerRe: GridView with HOver + vb.net Pin
ToddHileHoffer13-Jan-09 5:18
ToddHileHoffer13-Jan-09 5:18 
GeneralRe: GridView with HOver + vb.net Pin
K@313-Jan-09 10:42
K@313-Jan-09 10:42 
GeneralRe: GridView with HOver + vb.net Pin
ToddHileHoffer13-Jan-09 13:33
ToddHileHoffer13-Jan-09 13:33 
QuestionReport not filling ReportViewer Pin
Griffin200213-Jan-09 4:13
Griffin200213-Jan-09 4:13 
QuestionAsp.net TimeOut Pin
Maria sagayaraj13-Jan-09 2:50
Maria sagayaraj13-Jan-09 2:50 
AnswerRe: Asp.net TimeOut Pin
Reza Raad13-Jan-09 2:59
Reza Raad13-Jan-09 2:59 
GeneralRe: Asp.net TimeOut Pin
Maria sagayaraj13-Jan-09 7:16
Maria sagayaraj13-Jan-09 7:16 
AnswerRe: Asp.net TimeOut Pin
Rutvik Dave13-Jan-09 5:19
professionalRutvik Dave13-Jan-09 5:19 
Question[Message Deleted] Pin
Muruvet Kaplan13-Jan-09 2:38
Muruvet Kaplan13-Jan-09 2:38 
AnswerRe: System.InvalidOperationException in .net webservice Pin
N a v a n e e t h13-Jan-09 2:40
N a v a n e e t h13-Jan-09 2:40 
AnswerRe: System.InvalidOperationException in .net webservice Pin
SeMartens13-Jan-09 2:43
SeMartens13-Jan-09 2:43 
GeneralRe: System.InvalidOperationException in .net webservice Pin
Muruvet Kaplan13-Jan-09 2:56
Muruvet Kaplan13-Jan-09 2:56 
GeneralRe: System.InvalidOperationException in .net webservice Pin
SeMartens13-Jan-09 3:12
SeMartens13-Jan-09 3:12 
AnswerRe: System.InvalidOperationException in .net webservice Pin
Muruvet Kaplan13-Jan-09 4:11
Muruvet Kaplan13-Jan-09 4:11 

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.