ASP 101 - Active Server Pages 101 - Web04
The Place ASP Developers Go!



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





ASP.NET version of "Text Files"


The last couple weeks have brought book reviews, sample chapters, and plenty of updates, but very little in the way of new code... well the code is back this week with three new ASP.NET samples. The first of these is a sample on reading and writing text files from an ASP.NET web page.

The sample loads a page with two buttons. One loads the contents of the text file into a label on the page while the other writes some new text to the text file. It's a little more complex then the classic ASP way of doing things, but you'll get the hang of it pretty fast.

As with any script that deals with the file system, you'll need to be sure you've got your NTFS permissions set to allow changes to the text file or the script will throw an error.

Here's a zip file of the code (1.4 kb).

Play with the running version.


Back to the "Text Files" sample


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers