Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 5th, 2006, 11:49 AM
Registered User
Join Date: Apr 2006
Location: , , .
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?

  #2 (permalink)  
Old October 6th, 2006, 01:26 PM
Registered User
Join Date: Aug 2006
Location: Pittsburgh, PA, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

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();

Works pretty well for me.

  #3 (permalink)  
Old October 6th, 2006, 02:19 PM
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:07 AM.

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