Browse by Tags

Load a txt file in a TextBox
02 March 08 06:51 PM | Laurent Duveau
Here is a very simple piece of C# code to load a text file in a TextBox. Typical use to display a disclaimer. using System.IO; if (!Page.IsPostBack) { StreamReader StreamReader1 = new StreamReader (Server.MapPath( "disclaimer.txt" )); txtDisclaimer...
Filed under: ,