Click here to Skip to main content
15,899,314 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Geting Error On Uploding in FTP Pin
Any_India23-Nov-09 20:06
Any_India23-Nov-09 20:06 
GeneralRe: Geting Error On Uploding in FTP Pin
sashidhar23-Nov-09 20:32
sashidhar23-Nov-09 20:32 
GeneralRe: Geting Error On Uploding in FTP Pin
Abhijit Jana23-Nov-09 20:54
professionalAbhijit Jana23-Nov-09 20:54 
QuestionSpring.NET Pin
Brendan Vogt23-Nov-09 19:45
Brendan Vogt23-Nov-09 19:45 
Questionhow to capture MerchantOneprocessing Pin
ballameharmurali23-Nov-09 19:25
ballameharmurali23-Nov-09 19:25 
AnswerRe: how to capture MerchantOneprocessing Pin
Viral Upadhyay23-Nov-09 19:57
Viral Upadhyay23-Nov-09 19:57 
AnswerRe: how to capture MerchantOneprocessing [modified] Pin
sashidhar23-Nov-09 19:59
sashidhar23-Nov-09 19:59 
AnswerRe: how to capture MerchantOneprocessing Pin
Abhishek Sur23-Nov-09 21:26
professionalAbhishek Sur23-Nov-09 21:26 
If you are only bothered about the Response, dont use Redirect. Redirect actually navigates to the page, so if you use it, your own contextual response will get modified with the response.

So if you what to get the response, you need to invoke another HttpRequest to the web path.

string url = "https://secure.merchantonegateway.com/api/transact.php?id=response_code"
HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();
using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))
{
     result = sr.ReadToEnd();
     sr.Close();
}

Now result will hold the Response.

I think this is what you require.

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

GeneralRe: how to capture MerchantOneprocessing Pin
ballameharmurali1-Dec-09 19:34
ballameharmurali1-Dec-09 19:34 
QuestionProblem with controls collection exporting data Pin
Maxdd 723-Nov-09 15:01
Maxdd 723-Nov-09 15:01 
AnswerRe: Problem with controls collection exporting data Pin
Christian Graus23-Nov-09 16:12
protectorChristian Graus23-Nov-09 16:12 
GeneralRe: Problem with controls collection exporting data Pin
Maxdd 723-Nov-09 16:14
Maxdd 723-Nov-09 16:14 
AnswerRe: Problem with controls collection exporting data Pin
sashidhar23-Nov-09 16:53
sashidhar23-Nov-09 16:53 
GeneralRe: Problem with controls collection exporting data Pin
Abhijit Jana23-Nov-09 16:59
professionalAbhijit Jana23-Nov-09 16:59 
GeneralRe: Problem with controls collection exporting data Pin
sashidhar23-Nov-09 17:01
sashidhar23-Nov-09 17:01 
GeneralRe: Problem with controls collection exporting data Pin
Abhijit Jana23-Nov-09 17:10
professionalAbhijit Jana23-Nov-09 17:10 
AnswerRe: Problem with controls collection exporting data Pin
Abhishek Sur23-Nov-09 21:17
professionalAbhishek Sur23-Nov-09 21:17 
GeneralRe: Problem with controls collection exporting data Pin
Maxdd 724-Nov-09 6:18
Maxdd 724-Nov-09 6:18 
GeneralRe: Problem with controls collection exporting data Pin
Abhishek Sur24-Nov-09 21:33
professionalAbhishek Sur24-Nov-09 21:33 
QuestionJavaScript and Print Pin
AndyASPVB23-Nov-09 8:50
AndyASPVB23-Nov-09 8:50 
AnswerRe: JavaScript and Print Pin
Christian Graus23-Nov-09 9:32
protectorChristian Graus23-Nov-09 9:32 
AnswerRe: JavaScript and Print Pin
Abhishek Sur23-Nov-09 10:48
professionalAbhishek Sur23-Nov-09 10:48 
QuestionTreeView Relative Width Pin
W4Rl0CK4723-Nov-09 7:09
W4Rl0CK4723-Nov-09 7:09 
AnswerRe: TreeView Relative Width Pin
ToddHileHoffer23-Nov-09 7:15
ToddHileHoffer23-Nov-09 7:15 
GeneralRe: TreeView Relative Width Pin
W4Rl0CK4724-Nov-09 6:26
W4Rl0CK4724-Nov-09 6:26 

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.