Novice Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm working on a C# ASP.NET Web App.

I'd like to allow the user to type a url into a textbox. The url should
point to a text-based file.

I'd then like to display the contents of that text-based file in another
textbox.

My problem is getting ahold of the text from the url. The other parts of
the problem I can handle. I just don't know how to get my server to
download the file the url points to or read it any other way.

Thanks for the help! I've tried to google an answer, but haven't been able
to come up with very good search terms.
 
x,

On the server side, you can use the HttpWebRequest (or even the
WebClient class, to make it easy) to download the content and then populate
the box.

Hope this helps.
 
Thank you, Nicholas!!!


Nicholas Paldino said:
x,

On the server side, you can use the HttpWebRequest (or even the
WebClient class, to make it easy) to download the content and then
populate the box.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

I'm working on a C# ASP.NET Web App.

I'd like to allow the user to type a url into a textbox. The url should
point to a text-based file.

I'd then like to display the contents of that text-based file in another
textbox.

My problem is getting ahold of the text from the url. The other parts of
the problem I can handle. I just don't know how to get my server to
download the file the url points to or read it any other way.

Thanks for the help! I've tried to google an answer, but haven't been
able to come up with very good search terms.
 
Back
Top