I am by no means an expert, but I have done this for a couple of web sites. I use separate text file that I load into an asp:textbox. So, in my aspx I have this line:
<asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Rows="25" TextMode="MultiLine" Width="512px"></asp:TextBox>
In my code behind in the Page_Load I have this:
StreamReader reader = new StreamReader(File.Open(Server.MapPath "includes/license.inc"), FileMode.Open));
TextBox1.Text = reader.ReadToEnd();
reader.Close();
Works pretty well for me.
|