473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Three aspnet questions

Dim FILENAME As String = Page.MapPath("something.txt")

HomeDir = Directory.GetCurrentDirectory

TextBox1.Text = File.ReadAllText(FILENAME, Encoding.UTF8)

If I want to display text I use a TextBox and the above.

But a .txt is not that flexible a format.

I've tried other formats but the TextBox doe not appear to understand them.

How can I display a file of formatted text?

=========================

I'd like to display a site in a pane on my (Aspnet) page.

That is, when href-ing a site I'd like the site not to replace my page but
to occupy part of it. Is that possible?

========================

Warning 1 Validation (XHTML 1.0 Transitional): Element 'marquee' is not
supported. I:\MyD...
But it is such a nice control!

Do people use it anyway?

Is there a nice replacement?

Thanks for any answers

Thanks


Aug 2 '08 #1
8 1250
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Dim FILENAME As String = Page.MapPath("something.txt")

HomeDir = Directory.GetCurrentDirectory

TextBox1.Text = File.ReadAllText(FILENAME, Encoding.UTF8)

If I want to display text I use a TextBox and the above.

But a .txt is not that flexible a format.

I've tried other formats but the TextBox doe not appear to understand
them.

How can I display a file of formatted text?
TinyMCE will display and allow the editing of HTML content.

Marc
Aug 2 '08 #2
AAaron123 wrote:
Dim FILENAME As String = Page.MapPath("something.txt")

HomeDir = Directory.GetCurrentDirectory

TextBox1.Text = File.ReadAllText(FILENAME, Encoding.UTF8)

If I want to display text I use a TextBox and the above.

But a .txt is not that flexible a format.

I've tried other formats but the TextBox doe not appear to understand them.

How can I display a file of formatted text?
A text box can't display any formatted text at all.

If you want to display formatted text on a web page, the html format is
the obvious choise. Any other format needs a special viewer, conversion
to html or rendering as an image.
>
=========================

I'd like to display a site in a pane on my (Aspnet) page.

That is, when href-ing a site I'd like the site not to replace my page but
to occupy part of it. Is that possible?
iframe
>
========================

Warning 1 Validation (XHTML 1.0 Transitional): Element 'marquee' is not
supported. I:\MyD...
But it is such a nice control!
No, not really.

It's not supported any more, because there isn't really any serious
application for it.
Do people use it anyway?
Rarely.
Is there a nice replacement?
You could build something using DHTML.
--
Göran Andersson
_____
http://www.guffa.com
Aug 3 '08 #3
Thanks for the replies.

Guess I don't know how to display the hmtl.

I'd like the text to be in a file different from the page file.

And I need scroll bars.

I tried displaying it with a textbox bit it shows the codes rather than
formatting with them.

How do you display an html file within a page?
Thanks
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Dim FILENAME As String = Page.MapPath("something.txt")

HomeDir = Directory.GetCurrentDirectory

TextBox1.Text = File.ReadAllText(FILENAME, Encoding.UTF8)

If I want to display text I use a TextBox and the above.

But a .txt is not that flexible a format.

I've tried other formats but the TextBox doe not appear to understand
them.

How can I display a file of formatted text?

=========================

I'd like to display a site in a pane on my (Aspnet) page.

That is, when href-ing a site I'd like the site not to replace my page but
to occupy part of it. Is that possible?

========================

Warning 1 Validation (XHTML 1.0 Transitional): Element 'marquee' is not
supported. I:\MyD...
But it is such a nice control!

Do people use it anyway?

Is there a nice replacement?

Thanks for any answers

Thanks


Aug 3 '08 #4
"AAaron123" <aa*******@roadrunner.comwrote in message
news:eX**************@TK2MSFTNGP06.phx.gbl...
Guess I don't know how to display the HTML.
I'd like the text to be in a file different from the page file.
And I need scroll bars.
How do you display an HTML file within a page?
Göran has already answered this:
http://www.google.co.uk/search?sourc...GB252&q=iframe
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 3 '08 #5
Thanks a lot.

One continuing problem I have is not knowing what is considered good
programming practice in ASP.NET. Like the marquee - I like it a lot. I think
it's a good attention getter. I guess it's fallen out of favor generally.

Actually Göran mentioned iframe in connection with my second question -
displaying a remote site - I wasn't astute enough to extend it to the first
question.

Thanks to both of you
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"AAaron123" <aa*******@roadrunner.comwrote in message
news:eX**************@TK2MSFTNGP06.phx.gbl...
>Guess I don't know how to display the HTML.
I'd like the text to be in a file different from the page file.
And I need scroll bars.
How do you display an HTML file within a page?

Göran has already answered this:
http://www.google.co.uk/search?sourc...GB252&q=iframe
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 3 '08 #6
AAaron123 wrote:
Thanks for the replies.

Guess I don't know how to display the hmtl.

I'd like the text to be in a file different from the page file.

And I need scroll bars.

I tried displaying it with a textbox bit it shows the codes rather than
formatting with them.

How do you display an html file within a page?
If you have a complete html document, you can display it in an iframe,
like Mark sugested.

If you have an html snippet, you can use a div tag with the style
overflow:auto; and put the html code in the InnerHtml property.

--
Göran Andersson
_____
http://www.guffa.com
Aug 3 '08 #7

"Göran Andersson" <gu***@guffa.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
AAaron123 wrote:
>Thanks for the replies.

Guess I don't know how to display the hmtl.

I'd like the text to be in a file different from the page file.

And I need scroll bars.

I tried displaying it with a textbox bit it shows the codes rather than
formatting with them.

How do you display an html file within a page?

If you have a complete html document, you can display it in an iframe,
like Mark sugested.

If you have an html snippet, you can use a div tag with the style
overflow:auto; and put the html code in the InnerHtml property.

--
Göran Andersson
_____
http://www.guffa.com

Thanks - iframe is working great. I'll keep the InnerHtml property in mind.


Aug 3 '08 #8
I looked at sourceforge TinyMCE and found little documentation so I searched
the Internet and found many hits but I'm still not sure.

Is TinyMCE for inserting into a site or for using in the pc, or both.

I think it is only for add to ones internet page so a reader can use it. Is
that correct?
thanks

"Marc " <Rm********@imarc.co.ukwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Dim FILENAME As String = Page.MapPath("something.txt")

HomeDir = Directory.GetCurrentDirectory

TextBox1.Text = File.ReadAllText(FILENAME, Encoding.UTF8)

If I want to display text I use a TextBox and the above.

But a .txt is not that flexible a format.

I've tried other formats but the TextBox doe not appear to understand
them.

How can I display a file of formatted text?

TinyMCE will display and allow the editing of HTML content.

Marc

Aug 5 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Harry Simpson | last post by:
Windows Server 2003 is supposed to include Framework 1.1 right. I don't have it here but have reports that the web is not running. The users say that the %COMPUTERNAME%\ASPNET user doesn't exist....
3
by: Jiho Han | last post by:
Should ASPNET user belong to the local Users group? I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors. For example, I have my IIS...
10
by: Adam White | last post by:
The company I work for used to create web applications using an ASP user interface, VB6 COM+ middle-tier with a SQL2K back-end. They have recently moved on to .NET with ASP.NET user interfaces and...
8
by: Peanut | last post by:
I have used Belarc Advisor to run a PC Audit of my computer. According to this audit , I have three disabled accounts in ASPNET: Guest, Help Assistant, SUPPORT-388945a0. Under Users is the notation...
5
by: Bob Palank | last post by:
Deae Dr. GUI, MVPs and others Features of VB.Net 2005 makes it so easy to access mdb tables directly from the form's controls. This makes me wonder how and if I should restrict the communication...
2
by: Seguros Catatumbo | last post by:
Hi, i have decent experience with asp 3.0 (classic), and downloaded web developer express to see what's the fuzz over it. I have lots of questions, mostly regarding the use of forms and database...
4
seshu
by: seshu | last post by:
Hi everybody Presently Iam write three select statements with diff where and limt conditions but the select stmt in them is same insted of that can i write only one direct stmt...
1
by: =?Utf-8?B?TGVuYSBDYXJyb2xs?= | last post by:
I have a web application that was originally in VS2003 which was recently converted to VS2005. It uses a 3rd party control OPControl (from omnipotent software), which has its own web-site that...
12
by: Alberto | last post by:
Could you tell me witch are the advantages of using aspnet instead php? Thank you
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.