Click here to Skip to main content
15,890,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondelaying data load for a repeater on web form Pin
pmcm3-Oct-14 2:24
pmcm3-Oct-14 2:24 
QuestionBeginner Pin
tarun 922-Oct-14 9:40
professionaltarun 922-Oct-14 9:40 
AnswerRe: Beginner Pin
Richard MacCutchan2-Oct-14 21:47
mveRichard MacCutchan2-Oct-14 21:47 
AnswerRe: Beginner Pin
Suraj Sahoo | Coding Passion3-Oct-14 8:32
professionalSuraj Sahoo | Coding Passion3-Oct-14 8:32 
AnswerRe: Beginner Pin
suppubale4-Oct-14 1:49
suppubale4-Oct-14 1:49 
AnswerRe: Beginner Pin
Swinkaran5-Oct-14 12:22
professionalSwinkaran5-Oct-14 12:22 
AnswerRe: Beginner Pin
Dominic Burford8-Oct-14 3:56
professionalDominic Burford8-Oct-14 3:56 
QuestionHow do I POST back a specific header Pin
Wombaticus30-Sep-14 2:41
Wombaticus30-Sep-14 2: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 9:24
professionaljkirkerx30-Sep-14 9:24 
GeneralRe: How do I POST back a specific header Pin
Wombaticus30-Sep-14 22:42
Wombaticus30-Sep-14 22:42 
GeneralRe: How do I POST back a specific header Pin
jkirkerx1-Oct-14 5:53
professionaljkirkerx1-Oct-14 5:53 
QuestionRegarding PDF Converted file Pin
Member 1105767029-Sep-14 21:14
Member 1105767029-Sep-14 21:14 
AnswerRe: Regarding PDF Converted file Pin
ZurdoDev2-Oct-14 5:42
professionalZurdoDev2-Oct-14 5:42 
QuestionJavascript logic causes the page to be stuck Pin
ThetaClear29-Sep-14 8:32
ThetaClear29-Sep-14 8:32 
AnswerRe: Javascript logic causes the page to be stuck Pin
Richard Deeming29-Sep-14 9:14
mveRichard Deeming29-Sep-14 9:14 
GeneralRe: Javascript logic causes the page to be stuck Pin
ThetaClear29-Sep-14 9:58
ThetaClear29-Sep-14 9:58 
GeneralRe: Javascript logic causes the page to be stuck Pin
ThetaClear4-Oct-14 5:16
ThetaClear4-Oct-14 5:16 
QuestionHow to verify email address using mx record? Pin
miss78629-Sep-14 0:37
miss78629-Sep-14 0:37 
AnswerRe: How to verify email address using mx record? Pin
Richard Deeming29-Sep-14 1:58
mveRichard Deeming29-Sep-14 1:58 
GeneralRe: How to verify email address using mx record? Pin
miss7863-Oct-14 0:36
miss7863-Oct-14 0:36 
GeneralRe: How to verify email address using mx record? Pin
Richard Deeming3-Oct-14 2:09
mveRichard Deeming3-Oct-14 2:09 
QuestionAsp.net Ajax Autocomplete Return value to Search another Pin
Member 122810828-Sep-14 22:45
Member 122810828-Sep-14 22:45 
AnswerRe: Asp.net Ajax Autocomplete Return value to Search another Pin
Sibeesh KV29-Sep-14 0:53
professionalSibeesh KV29-Sep-14 0:53 
Questionweb form using 2 gridview controls Pin
dcof26-Sep-14 4:49
dcof26-Sep-14 4:49 
QuestionReducing form size Pin
Member 876166726-Sep-14 2:31
Member 876166726-Sep-14 2: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.