Click here to Skip to main content
15,902,893 members
Home / Discussions / ASP.NET
   

ASP.NET

 
General[Message Deleted] Pin
Burim Rama8-May-08 1:33
Burim Rama8-May-08 1:33 
GeneralRe: Translate this in asp.net Pin
Christian Graus8-May-08 1:39
protectorChristian Graus8-May-08 1:39 
GeneralRe: Translate this in asp.net Pin
Burim Rama8-May-08 2:07
Burim Rama8-May-08 2:07 
GeneralRe: Translate this in asp.net Pin
Christian Graus8-May-08 2:19
protectorChristian Graus8-May-08 2:19 
GeneralRe: Translate this in asp.net Pin
Burim Rama8-May-08 2:24
Burim Rama8-May-08 2:24 
GeneralRe: Translate this in asp.net Pin
Christian Graus8-May-08 2:26
protectorChristian Graus8-May-08 2:26 
GeneralRe: Translate this in asp.net Pin
Burim Rama8-May-08 2:29
Burim Rama8-May-08 2:29 
GeneralRe: Translate this in asp.net Pin
Christian Graus8-May-08 11:34
protectorChristian Graus8-May-08 11:34 
That's why you do the post of the data and grab the response.

Here is the code from my credit card class, which uses the methods you need to use.

string strPost = transaction.ToString();

StreamWriter myWriter = null;

HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create((transaction.TestRequest) ? testurl : url);
objRequest.AuthenticationLevel = System.Net.Security.AuthenticationLevel.MutualAuthRequired;
objRequest.Method = "POST";
objRequest.ContentLength = strPost.Length;
objRequest.ContentType = "application/x-www-form-urlencoded";

try
{
myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(strPost);
}
catch (Exception e)
{
return null;
}
finally
{
if (myWriter != null)
myWriter.Close();
}

string result = string.Empty;

HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();
using (StreamReader sr =
new StreamReader(objResponse.GetResponseStream()))
{
result = sr.ReadToEnd();

// Close and clean up the StreamReader
sr.Close();
}

AuthorizeResponse response = new AuthorizeResponse(result);

return response;

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

QuestionUserControls in App_Code-directory Pin
Johan Martensson8-May-08 1:02
Johan Martensson8-May-08 1:02 
AnswerRe: UserControls in App_Code-directory Pin
Christian Graus8-May-08 1:07
protectorChristian Graus8-May-08 1:07 
GeneralRe: UserControls in App_Code-directory Pin
Johan Martensson8-May-08 1:17
Johan Martensson8-May-08 1:17 
GeneralRe: UserControls in App_Code-directory Pin
Christian Graus8-May-08 1:19
protectorChristian Graus8-May-08 1:19 
GeneralRe: UserControls in App_Code-directory Pin
Johan Martensson8-May-08 1:24
Johan Martensson8-May-08 1:24 
GeneralRe: UserControls in App_Code-directory Pin
Christian Graus8-May-08 1:36
protectorChristian Graus8-May-08 1:36 
GeneralRe: UserControls in App_Code-directory Pin
Johan Martensson8-May-08 1:46
Johan Martensson8-May-08 1:46 
GeneralRe: UserControls in App_Code-directory Pin
Christian Graus8-May-08 1:50
protectorChristian Graus8-May-08 1:50 
GeneralRe: UserControls in App_Code-directory Pin
Johan Martensson8-May-08 2:01
Johan Martensson8-May-08 2:01 
Questionkeyword search Pin
eyeseetee8-May-08 0:59
eyeseetee8-May-08 0:59 
AnswerRe: keyword search Pin
Christian Graus8-May-08 1:06
protectorChristian Graus8-May-08 1:06 
GeneralRe: keyword search Pin
eyeseetee8-May-08 1:11
eyeseetee8-May-08 1:11 
GeneralRe: keyword search Pin
Christian Graus8-May-08 1:15
protectorChristian Graus8-May-08 1:15 
GeneralRe: keyword search Pin
eyeseetee8-May-08 1:24
eyeseetee8-May-08 1:24 
AnswerRe: keyword search Pin
Geir Danielsen8-May-08 1:37
Geir Danielsen8-May-08 1:37 
GeneralRe: keyword search Pin
eyeseetee8-May-08 2:17
eyeseetee8-May-08 2:17 
Questionmaster-content page problem Pin
Miss Maheshwari8-May-08 0:21
Miss Maheshwari8-May-08 0:21 

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.