Click here to Skip to main content
15,914,594 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to search multiple string in database Pin
ph4ufree14-Jun-08 7:13
ph4ufree14-Jun-08 7:13 
AnswerRe: how to search multiple string in database Pin
Christian Graus14-Jun-08 8:40
protectorChristian Graus14-Jun-08 8:40 
Questionproblem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
Nitin198114-Jun-08 6:17
Nitin198114-Jun-08 6:17 
AnswerRe: problem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
N a v a n e e t h14-Jun-08 16:19
N a v a n e e t h14-Jun-08 16:19 
GeneralRe: problem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
Nitin198115-Jun-08 6:50
Nitin198115-Jun-08 6:50 
QuestionAuthentication/Session Problem [modified] Pin
Jedidah14-Jun-08 5:42
Jedidah14-Jun-08 5:42 
Questionnamespace for Literalcontrol in asp.net Pin
trilokharry14-Jun-08 5:21
trilokharry14-Jun-08 5:21 
AnswerRe: namespace for Literalcontrol in asp.net Pin
N a v a n e e t h14-Jun-08 5:59
N a v a n e e t h14-Jun-08 5:59 
GeneralRe: namespace for Literalcontrol in asp.net Pin
Christian Graus14-Jun-08 9:13
protectorChristian Graus14-Jun-08 9:13 
GeneralRe: namespace for Literalcontrol in asp.net Pin
N a v a n e e t h14-Jun-08 16:11
N a v a n e e t h14-Jun-08 16:11 
GeneralRe: namespace for Literalcontrol in asp.net Pin
Christian Graus14-Jun-08 16:48
protectorChristian Graus14-Jun-08 16:48 
GeneralRe: namespace for Literalcontrol in asp.net Pin
N a v a n e e t h14-Jun-08 18:21
N a v a n e e t h14-Jun-08 18:21 
GeneralRe: namespace for Literalcontrol in asp.net Pin
Christian Graus15-Jun-08 2:42
protectorChristian Graus15-Jun-08 2:42 
Questionbutton Pin
trilokharry14-Jun-08 5:01
trilokharry14-Jun-08 5:01 
AnswerRe: button Pin
Christian Graus14-Jun-08 8:41
protectorChristian Graus14-Jun-08 8:41 
QuestionThe SMTP host was not specified. Pin
iamdking14-Jun-08 1:55
iamdking14-Jun-08 1:55 
AnswerRe: The SMTP host was not specified. Pin
Christian Graus14-Jun-08 3:37
protectorChristian Graus14-Jun-08 3:37 
GeneralRe: The SMTP host was not specified. Pin
iamdking14-Jun-08 20:55
iamdking14-Jun-08 20:55 
Questionconfirmation dialog box in asp.net 2.0 Pin
vijaylumar14-Jun-08 1:18
vijaylumar14-Jun-08 1:18 
AnswerRe: confirmation dialog box in asp.net 2.0 Pin
Christian Graus14-Jun-08 3:38
protectorChristian Graus14-Jun-08 3:38 
Questiondifference between events and functions Pin
Pankaj Garg14-Jun-08 1:15
Pankaj Garg14-Jun-08 1:15 
AnswerRe: difference between events and functions Pin
Christian Graus14-Jun-08 3:36
protectorChristian Graus14-Jun-08 3:36 
AnswerRe: difference between events and functions Pin
Meysam Mahfouzi15-Jun-08 2:54
Meysam Mahfouzi15-Jun-08 2:54 
Questionexception "The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF" Pin
trilokharry13-Jun-08 23:07
trilokharry13-Jun-08 23:07 
req.GetRequestStream().Length' threw an exception of type 'System.NotSupportedException'

I'm getting this error while implementing paypal payment process.
when control going to this statement in asp.net page after coming back from payment process completion.

StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());

code:

string strSandbox = "https://www.sandbox.paypal.com/cgi-bin/webscr";
//string strLive = "https://www.paypal.com/cgi-bin/webscr";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(strSandbox);

req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
byte[] param = Request.BinaryRead(HttpContext.Current.Request.ContentLength);
string strRequest = Encoding.ASCII.GetString(param);
strRequest += "&cmd=_notify-validate";
if (strRequest != "&cmd=_notify-validate")
{
req.ContentLength = strRequest.Length;

//Send the request to PayPal and get the response
StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
streamOut.Write(strRequest);
streamOut.Close();

//ERROR in below 2 statements some time ---right now not coming
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
string strResponse = streamIn.ReadToEnd();
streamIn.Close();

You get the best out of others when you give the best of yourself.

Questionchange listwidth of dropdownlist in asp.net 2.0 Pin
vijaylumar13-Jun-08 21:50
vijaylumar13-Jun-08 21:50 

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.