Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox not display the right string? Pin
Snowjim22-Apr-05 4:11
Snowjim22-Apr-05 4:11 
AnswerRe: RichTextBox not display the right string? Pin
leppie22-Apr-05 6:42
leppie22-Apr-05 6:42 
GeneralReg Ex Pin
mvermef21-Apr-05 13:00
mvermef21-Apr-05 13:00 
GeneralRe: Reg Ex Pin
leppie21-Apr-05 19:46
leppie21-Apr-05 19:46 
GeneralPopulating an XSD Dataset Pin
SignMan35921-Apr-05 11:10
SignMan35921-Apr-05 11:10 
GeneralRe: Populating an XSD Dataset Pin
Carl Mercier21-Apr-05 15:21
Carl Mercier21-Apr-05 15:21 
GeneralRe: Populating an XSD Dataset Pin
Hrashita Triapthi21-Apr-05 21:23
Hrashita Triapthi21-Apr-05 21:23 
GeneralHelp Plz in that e-mail client Pin
SherKar21-Apr-05 9:26
SherKar21-Apr-05 9:26 
hi,
i have a problem regarding this piece of code it throw an exception ("time out expired ") can anyone tell me why
<br />
try<br />
{<br />
// Write the request<br />
Stream reqStream = webRequest.GetRequestStream();<br />
reqStream.Write(requestBytes,0,requestBytes.Length);<br />
reqStream.Close();<br />
// Get a response<br />
HttpWebResponse webResponse=(HttpWebResponse)webRequest.GetResponse();<br />
if (webRequest.HaveResponse)<br />
{<br />
   // Handle returned cookies<br />
   foreach(Cookie retCookie in webResponse.Cookies)<br />
   {<br />
	bool cookieFound = false;<br />
				<br />
	foreach(Cookie oldCookie in ccContainer.GetCookies(destination))<br />
	{<br />
        	if (retCookie.Name.Equals(oldCookie.Name))<br />
	          {<br />
		    oldCookie.Value = retCookie.Value;<br />
		    cookieFound = true;<br />
		  }<br />
	}<br />
	if (!cookieFound)<br />
        	ccContainer.Add(retCookie);<br />
				<br />
}					<br />
// Handle redirection headers<br />
if ((webResponse.StatusCode == HttpStatusCode.Found) || <br />
    (webResponse.StatusCode == HttpStatusCode.Redirect) ||<br />
    (webResponse.StatusCode == HttpStatusCode.Moved) ||<br />
    (webResponse.StatusCode == HttpStatusCode.MovedPermanently))<br />
{				<br />
  WebHeaderCollection headers = webResponse.Headers;<br />
  return SendRequestTo(requestBytes,new Uri(headers["location"]),credential);	<br />
}<br />
// Read response<br />
StreamReader stream = new StreamReader(webResponse.GetResponseStream());<br />
string responseString = stream.ReadToEnd();<br />
stream.Close();<br />
return responseString;<br />
}<br />
// No response<br />
throw new ApplicationException("No response received from host.");<br />
			}<br />
catch(WebException e)<br />
{<br />
// Error occured<br />
  Trace.WriteLine("Exception occured " + e.Message);<br />
throw new ApplicationException("Exception occured while sending request.",e);<br />
}

GeneralRe: Help Plz in that e-mail client Pin
John Fisher22-Apr-05 7:45
John Fisher22-Apr-05 7:45 
Questionbyte[] ? Pin
Snowjim21-Apr-05 9:02
Snowjim21-Apr-05 9:02 
AnswerRe: byte[] ? Pin
Dave Kreskowiak21-Apr-05 10:13
mveDave Kreskowiak21-Apr-05 10:13 
GeneralRe: byte[] ? Pin
Snowjim21-Apr-05 11:25
Snowjim21-Apr-05 11:25 
Generalstarting and stopping processes Pin
Mridang Agarwalla21-Apr-05 7:29
Mridang Agarwalla21-Apr-05 7:29 
GeneralRe: starting and stopping processes Pin
Dave Kreskowiak21-Apr-05 10:06
mveDave Kreskowiak21-Apr-05 10:06 
GeneralRe: starting and stopping processes Pin
Polis Pilavas22-Apr-05 10:13
Polis Pilavas22-Apr-05 10:13 
Generaldetecting net connection Pin
Mridang Agarwalla21-Apr-05 7:18
Mridang Agarwalla21-Apr-05 7:18 
GeneralRe: detecting net connection Pin
Dave Kreskowiak21-Apr-05 10:02
mveDave Kreskowiak21-Apr-05 10:02 
GeneralRe: detecting net connection Pin
Mridang Agarwalla21-Apr-05 18:13
Mridang Agarwalla21-Apr-05 18:13 
GeneralRe: detecting net connection Pin
tawammar22-Apr-05 0:27
tawammar22-Apr-05 0:27 
GeneralRe: detecting net connection Pin
Polis Pilavas22-Apr-05 10:26
Polis Pilavas22-Apr-05 10:26 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 2:27
tawammar23-Apr-05 2:27 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 6:09
tawammar23-Apr-05 6:09 
GeneralRe: detecting net connection Pin
Polis Pilavas23-Apr-05 8:22
Polis Pilavas23-Apr-05 8:22 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 10:16
tawammar23-Apr-05 10:16 
GeneralRe: detecting net connection Pin
Polis Pilavas23-Apr-05 10:21
Polis Pilavas23-Apr-05 10: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.