Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2006, 11:49 AM
Registered User
 
Join Date: Apr 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How display large amount of dynamic text

Using C# and code behind. Need to display website terms and usage based on user type. Currently in asp and use an include file and change content dynamically and perform response.write to a table on the page. The site terms are over a page long. Any recommendations?

 
Old October 6th, 2006, 01:26 PM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old October 6th, 2006, 02:19 PM
Registered User
 
Join Date: Apr 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

toma12 thank you for the post--text file and stream reader is a good idea.

I re-read the chapters on user controls (.ascx file) and created a simple user control to solve the problem.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting a flexibel amount of text part 2 jmaronilla PHP Databases 0 July 28th, 2008 08:22 PM
using autosuggest with very large amount of info jfern Javascript 1 November 2nd, 2006 07:00 AM
Managing large amount of data at a time pandu345 Java Databases 0 May 19th, 2006 04:51 PM
Help with large amount of text and page breaks rwodabek BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 May 12th, 2006 07:49 AM
Total Amount display doosti Classic ASP Databases 2 November 14th, 2004 07:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.