?
Solved

What object do you use to place a large body of text on a web page being designed in VS 2005 and C#

Posted on 2006-06-03
6
Medium Priority
?
217 Views
Last Modified: 2010-04-16
I am trying to place a large body of text on my web page.  I tried using the text box and the label box and the HTML text area.  Either I do not understand how these objects work or I am doing something wrong.  I am quite certain this is very simple for many of you to answer.  But I am still going to post the question as 500 points.

Thanks
Kenny
0
Comment
Question by:kwh3856
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:aaronfeng
ID: 16824928
Did you try to do this on the TextBox?

this.TextBox1.TextMode = TextBoxMode.MultiLine;

Cheers,

Aaron
http://aaronfeng.blogspot.com/
0
 

Author Comment

by:kwh3856
ID: 16824966
Where do you put the actual text.  Here is an example of the paragraph.

The acronym RHIO stands for Regional Health Information Organization.  The primary goal of most RHIO’s is to share patient health information between clinical entities.  RHIO members can consist of hospitals, physician offices, mental health facilities, rural health clinics, federally qualified health centers, home health agencies, labs, and pharmacies.  Each one of these entities has critical clinical data that the other entities would benefit from if the information was available.  The key to a successful RHIO is the ability to share this data while at the same time managing patient confidentiality throughout the process.  This success can be achieved through a system that provides quick and easy access to entities who are connected to this common network

Thanks
Kenny
0
 
LVL 5

Expert Comment

by:aaronfeng
ID: 16824971
you can store the text in a string, I'm going to show you the simplest way to do it, but you generally don't want to just hardcode stuff in your code.  Maybe it should be stored in DB or something like that, so you can change it without changing the code.

string textToShow = "The acronym RHIO stands for.....";
this.TextBox1.TextMode = TextBoxMode.MultiLine;
this.TextBox1.Text = textToShow;

Cheers,

Aaron
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:kwh3856
ID: 16824992
Aaron,
Do you know of any controls that let you place a text box on the screen and then paste the text into the box.  Then, freely move it around on the web page?  I guess I am looking for feature of Front Page that do not exist in C#/Visual Studio?

Thanks
Kenny
0
 
LVL 5

Accepted Solution

by:
aaronfeng earned 2000 total points
ID: 16825017
I'm little bit lost on what you are trying to do.  You just want to show that long text on a aspx page?  If that's all you want to do you can just copy that text then paste onto the aspx page in design mode.  You don't need any control in that case (But I don't think that is what you want).  If you want the text to show up in a TextBox, just drop the TextBox control onto the aspx page in design mode then resize and position the TextBox to your desire.  When you finish with that, just do the code I showed you above.

Cheers,

Aaron
0
 

Author Comment

by:kwh3856
ID: 16825024
That is exactly what I needed to do.  I thought I had to drop a text box on the page and the past the text into the text box but did not realize I needed the code behind it.

Thanks
Kenny
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question