Click here to Skip to main content
15,792,959 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondelaying data load for a repeater on web form Pin
pmcm3-Oct-14 3:24
pmcm3-Oct-14 3:24 
QuestionBeginner Pin
tarun 922-Oct-14 10:40
professionaltarun 922-Oct-14 10:40 
AnswerRe: Beginner Pin
Richard MacCutchan2-Oct-14 22:47
mveRichard MacCutchan2-Oct-14 22:47 
AnswerRe: Beginner Pin
Suraj Sahoo | Coding Passion3-Oct-14 9:32
professionalSuraj Sahoo | Coding Passion3-Oct-14 9:32 
AnswerRe: Beginner Pin
suppubale4-Oct-14 2:49
suppubale4-Oct-14 2:49 
AnswerRe: Beginner Pin
Swinkaran5-Oct-14 13:22
professionalSwinkaran5-Oct-14 13:22 
AnswerRe: Beginner Pin
Dominic Burford8-Oct-14 4:56
professionalDominic Burford8-Oct-14 4:56 
QuestionHow do I POST back a specific header Pin
Wombaticus30-Sep-14 3:41
Wombaticus30-Sep-14 3:41 
AM trying to integrate an online payment system, where the secure payment gateway will send a notification to a specified URL on my site - I have given a generic handler (.ashx) address. I can read the data they send (it's a simple POST), but they require that I send back:
a notification with a response of: "HTTP/1.1 200 OK".
I am not sure what they want... Is a simple
VB
context.Response.ContentType = "text/plain"
context.Response.Write("HTTP/1.1 200 OK")

enough? Perhaps necessarily preceded with
VB
context.Response.StatusCode = 200

?
Or is something more sophisticated required, along the lines of

VB
Dim req As System.Net.HttpWebRequest = System.Net.WebRequest.Create("https://secure-gateway-url")
req.Method = "POST"
req.ContentType = "application/x-www-form-urlencoded"
req.Accept = "HTTP/1.1 200 OK"  ?????
req.Headers .Add (   ?????
Dim param As Byte() = context.Request.BinaryRead(HttpContext.Current.Request.ContentLength)
Dim strRequest As String = Encoding.ASCII.GetString(param)
req.ContentLength = strRequest.Length
Dim streamOut As System.IO.StreamWriter = New System.IO.StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII)
streamOut.Write(strRequest)
streamOut.Close()

with what needed at the lines flagged ????

I’d be very grateful for any advice... thanks
AnswerRe: How do I POST back a specific header Pin
jkirkerx30-Sep-14 10:24
professionaljkirkerx30-Sep-14 10:24 
GeneralRe: How do I POST back a specific header Pin
Wombaticus30-Sep-14 23:42
Wombaticus30-Sep-14 23:42 
GeneralRe: How do I POST back a specific header Pin
jkirkerx1-Oct-14 6:53
professionaljkirkerx1-Oct-14 6:53 
QuestionRegarding PDF Converted file Pin
Member 1105767029-Sep-14 22:14
Member 1105767029-Sep-14 22:14 
AnswerRe: Regarding PDF Converted file Pin
ZurdoDev2-Oct-14 6:42
professionalZurdoDev2-Oct-14 6:42 
QuestionJavascript logic causes the page to be stuck Pin
ThetaClear29-Sep-14 9:32
ThetaClear29-Sep-14 9:32 
AnswerRe: Javascript logic causes the page to be stuck Pin
Richard Deeming29-Sep-14 10:14
mveRichard Deeming29-Sep-14 10:14 
GeneralRe: Javascript logic causes the page to be stuck Pin
ThetaClear29-Sep-14 10:58
ThetaClear29-Sep-14 10:58 
GeneralRe: Javascript logic causes the page to be stuck Pin
ThetaClear4-Oct-14 6:16
ThetaClear4-Oct-14 6:16 
QuestionHow to verify email address using mx record? Pin
miss78629-Sep-14 1:37
miss78629-Sep-14 1:37 
AnswerRe: How to verify email address using mx record? Pin
Richard Deeming29-Sep-14 2:58
mveRichard Deeming29-Sep-14 2:58 
GeneralRe: How to verify email address using mx record? Pin
miss7863-Oct-14 1:36
miss7863-Oct-14 1:36 
GeneralRe: How to verify email address using mx record? Pin
Richard Deeming3-Oct-14 3:09
mveRichard Deeming3-Oct-14 3:09 
QuestionAsp.net Ajax Autocomplete Return value to Search another Pin
Member 122810828-Sep-14 23:45
Member 122810828-Sep-14 23:45 
AnswerRe: Asp.net Ajax Autocomplete Return value to Search another Pin
Sibeesh KV29-Sep-14 1:53
professionalSibeesh KV29-Sep-14 1:53 
Questionweb form using 2 gridview controls Pin
dcof26-Sep-14 5:49
dcof26-Sep-14 5:49 
QuestionReducing form size Pin
Member 876166726-Sep-14 3:31
Member 876166726-Sep-14 3:31 

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.