Three aspnet questions

  • Thread starter Thread starter AAaron123
  • Start date Start date
A

AAaron123

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
 
AAaron123 said:
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
 
AAaron123 said:
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.
 
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
 
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
 
AAaron123 said:
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 said:
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.


Thanks - iframe is working great. I'll keep the InnerHtml property in mind.
 
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
 
Back
Top