Click here to Skip to main content
16,004,406 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing and Reading Audio CD Pin
Christian Graus22-Aug-05 11:42
protectorChristian Graus22-Aug-05 11:42 
GeneralRe: Writing and Reading Audio CD Pin
Corinna John22-Aug-05 19:47
Corinna John22-Aug-05 19:47 
GeneralRe: Writing and Reading Audio CD Pin
Dave Kreskowiak21-Aug-05 15:32
mveDave Kreskowiak21-Aug-05 15:32 
GeneralRe: Writing and Reading Audio CD Pin
Corinna John22-Aug-05 6:08
Corinna John22-Aug-05 6:08 
QuestionHow many rows a table in SqlServer can contain? Pin
Anonymous21-Aug-05 7:09
Anonymous21-Aug-05 7:09 
AnswerRe: How many rows a table in SqlServer can contain? Pin
Guffa21-Aug-05 7:11
Guffa21-Aug-05 7:11 
GeneralWebRequest question Pin
zagzagzag21-Aug-05 6:27
zagzagzag21-Aug-05 6:27 
GeneralRe: WebRequest question Pin
Guffa21-Aug-05 6:51
Guffa21-Aug-05 6:51 
You can try if reading the response as a stream enables you to get the response as it arrives. I'm not sure if the entire response is recieved before the GetResponse method returns r not.

Here is an example from MSDN:

// Create a 'WebRequest' object with the specified url. 
WebRequest myWebRequest = WebRequest.Create("http://www.constoso.com"); 

// Send the 'WebRequest' and wait for response.
WebResponse myWebResponse = myWebRequest.GetResponse(); 

// Obtain a 'Stream' object associated with the response object.
Stream ReceiveStream = myWebResponse.GetResponseStream();
                
Encoding encode = System.Text.Encoding.GetEncoding("utf-8");

// Pipe the stream to a higher level stream reader with the required encoding format. 
StreamReader readStream = new StreamReader( ReceiveStream, encode );
Console.WriteLine("\nResponse stream received");
Char[] read = new Char[256];

// Read 256 charcters at a time.    
int count = readStream.Read( read, 0, 256 );
Console.WriteLine("HTML...\r\n");

while (count > 0) {
	// Dump the 256 characters on a string and display the string onto the console.
	String str = new String(read, 0, count);
	Console.Write(str);
	count = readStream.Read(read, 0, 256);
}

Console.WriteLine("");
// Release the resources of stream object.
readStream.Close();

// Release the resources of response object.
myWebResponse.Close();


---
b { font-weight: normal; }

GeneralRe: WebRequest question Pin
zagzagzag21-Aug-05 8:10
zagzagzag21-Aug-05 8:10 
GeneralProject options in VS .NET Pin
Stylez Daviz21-Aug-05 4:48
Stylez Daviz21-Aug-05 4:48 
GeneralRe: Project options in VS .NET Pin
S Sansanwal21-Aug-05 16:10
S Sansanwal21-Aug-05 16:10 
GeneralCopy rows from one datatable to another Pin
Member 220452221-Aug-05 4:00
Member 220452221-Aug-05 4:00 
GeneralRe: Copy rows from one datatable to another Pin
pmasknguyen21-Aug-05 4:59
pmasknguyen21-Aug-05 4:59 
GeneralDataGrid Row Indicator Pin
econner21-Aug-05 3:43
econner21-Aug-05 3:43 
GeneralRe: DataGrid Row Indicator Pin
Sarvesvara (BVKS) Dasa21-Aug-05 16:42
Sarvesvara (BVKS) Dasa21-Aug-05 16:42 
GeneralDataGrid column sizing Pin
econner21-Aug-05 3:33
econner21-Aug-05 3:33 
GeneralRe: DataGrid column sizing Pin
Sarvesvara (BVKS) Dasa21-Aug-05 16:43
Sarvesvara (BVKS) Dasa21-Aug-05 16:43 
GeneralError Logger Pin
rmedo21-Aug-05 2:55
rmedo21-Aug-05 2:55 
GeneralRe: Error Logger Pin
zagzagzag21-Aug-05 5:52
zagzagzag21-Aug-05 5:52 
GeneralRe: Error Logger Pin
DavidNohejl21-Aug-05 6:32
DavidNohejl21-Aug-05 6:32 
GeneralRe: Error Logger Pin
AETaylor21-Aug-05 8:03
AETaylor21-Aug-05 8:03 
GeneralBulk insert in Oracle Pin
mohitTheOne21-Aug-05 2:14
mohitTheOne21-Aug-05 2:14 
GeneralSending Mail thru MS OUTLOOK Pin
Sarvesvara (BVKS) Dasa21-Aug-05 1:57
Sarvesvara (BVKS) Dasa21-Aug-05 1:57 
GeneralRe: Sending Mail thru MS OUTLOOK Pin
Guffa21-Aug-05 6:54
Guffa21-Aug-05 6:54 
Generalaudio problem Pin
snouto21-Aug-05 0:29
snouto21-Aug-05 0:29 

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.