Click here to Skip to main content
15,884,648 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 2:26
Shaun Wilde19-Sep-02 2:26 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 11:09
Shaun Wilde19-Sep-02 11:09 
GeneralBeginner C# questions Pin
vivosh197818-Sep-02 22:55
vivosh197818-Sep-02 22:55 
GeneralRe: Beginner C# questions Pin
leppie18-Sep-02 23:38
leppie18-Sep-02 23:38 
GeneralRe: Beginner C# questions Pin
James T. Johnson19-Sep-02 0:06
James T. Johnson19-Sep-02 0:06 
GeneralRe: Beginner C# questions Pin
leppie19-Sep-02 0:31
leppie19-Sep-02 0:31 
GeneralDataGrid Pin
vikramlinux18-Sep-02 18:03
vikramlinux18-Sep-02 18:03 
GeneralHanging web request Pin
afronaut18-Sep-02 13:23
afronaut18-Sep-02 13:23 
Hey all - I'm trying to get an RSS feed using the System.Net.WebRequest class:
<br />
/* <br />
using System.Net;<br />
*/<br />
WebRequest requ = WebRequest.Create(feed);<br />
Stream instream;<br />
WebResponse result = requ.GetResponse();<br />
instream = result.GetResponseStream();<br />
StreamReader reader = new StreamReader(instream);<br />
String code="";<br />
while(code != null){  // <-- hangs in this loop<br />
code+=reader.ReadLine();<br />
}<br />


Unfortunately, it is hanging in my loop that retrieves all the text from the URL. Is there a better way to read all the text out of a feed? Also, does anyone know why it is an endless loop?

*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
GeneralRe: Hanging web request Pin
Paul Riley18-Sep-02 13:31
Paul Riley18-Sep-02 13:31 
GeneralRe: Hanging web request Pin
afronaut18-Sep-02 13:32
afronaut18-Sep-02 13:32 
GeneralRe: Hanging web request Pin
afronaut19-Sep-02 5:24
afronaut19-Sep-02 5:24 
GeneralManaged interface for IActiveDesktop Pin
Wjousts18-Sep-02 11:59
Wjousts18-Sep-02 11:59 
GeneralRe: Managed interface for IActiveDesktop Pin
Stephane Rodriguez.18-Sep-02 20:44
Stephane Rodriguez.18-Sep-02 20:44 
GeneralRe: Managed interface for IActiveDesktop Pin
Wjousts19-Sep-02 15:50
Wjousts19-Sep-02 15:50 
GeneralRe: Managed interface for IActiveDesktop Pin
Okeno Palmer28-Dec-03 18:50
Okeno Palmer28-Dec-03 18:50 
QuestionRelease date of .NET 1.1? Pin
leppie18-Sep-02 4:50
leppie18-Sep-02 4:50 
GeneralWeb Service question (C#) Pin
User 988518-Sep-02 4:50
User 988518-Sep-02 4:50 
GeneralWeb Service question (C#) - addl info Pin
User 988518-Sep-02 4:55
User 988518-Sep-02 4:55 
GeneralRe: Web Service question (C#) Pin
leppie18-Sep-02 4:57
leppie18-Sep-02 4:57 
GeneralRe: Web Service question (C#) Pin
Ray Cassick18-Sep-02 5:20
Ray Cassick18-Sep-02 5:20 
GeneralRe: Web Service question (C#) Pin
leppie18-Sep-02 5:59
leppie18-Sep-02 5:59 
GeneralRe: Web Service question (C#) Pin
User 988518-Sep-02 5:28
User 988518-Sep-02 5:28 
GeneralRe: Web Service question (C#) Pin
leppie18-Sep-02 5:53
leppie18-Sep-02 5:53 
GeneralRe: Web Service question (C#) Pin
User 988518-Sep-02 6:39
User 988518-Sep-02 6:39 
GeneralRe: Web Service question (C#) Pin
leppie18-Sep-02 6:46
leppie18-Sep-02 6:46 

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.