External HTML

  • Thread starter Steve C. Orr [MVP, MCSD]
  • Start date
S

Scott M.

Create a user control that contains your data, then just drag that user
control (.ascx file) on to you page where you want the data.
 
G

gabe garza

Use a HTML IFRAME Tag

<iframe src="filename.ext" frameborder=0></iframe>

filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...

I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS X)
 
D

darrel

Use a HTML IFRAME Tag
<iframe src="filename.ext" frameborder=0></iframe>

filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...

I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS X)

Only do this as a last resort. If you have access to server-side technology
(and I assume folks do when posting in a .net newsgroup) it'd be much better
to do this server side with controls, or even just good 'ol server side
include.

-Darrel
 
S

Scott M.

I agree. Most folks steer clear of IFRAMES.


darrel said:
Only do this as a last resort. If you have access to server-side
technology
(and I assume folks do when posting in a .net newsgroup) it'd be much
better
to do this server side with controls, or even just good 'ol server side
include.

-Darrel
 
A

Alex Nitulescu

Hi. I have some documents (containing either plain text, either HTML) and
I'd like to be able to show the contents on those files in different places
on my website.

The question is how do I show them ? I have tried with <a href=...../> but
nothing shows ! I have also tried with <link....., with the same (non-)
result.

Which is the correct way to include the same paragraph in different places
on my pages ?

Thank you
Alex
 
A

Alex Nitulescu

Hi. Thank you for your answers.

Let me give you, however, some specs:

In the head of an ASPX page I have a Java script to which I have to pass
some strings - it will build an array and make them scroll vertically along
the container (screen), as the credits in a movie.

For instance, I have:

my_msg[0] = '<div align="center"><u>&nbsp Credits for my wesbite
&nbsp</u></div>';

and

my_msg[1] = '<div align="center"><a>Website name here</a> is an example
website written by Alex to illustrate the principles of design,
specification, and implementation of a content-based website in ASP.NET.
This website is a three-tiered solution (Presentation Layer, Business Layer,
and the Data Services Layer).</div>';

and so on. I even have one of the messages which shows a table, like this:

my_msg[9] = '<div align="center"><table cellpadding=2 cellspacing=2 border=1
bordercolor=deepskyblue bgcolor=#000066 style="COLOR: lightskyblue;
FONT-FAMILY: Arial"><tr align=center><td colspan=2><a>MyWebsite</a> uses the
following technologies:</td></tr><tr align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/html.gif"></td><td>HTML</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/html.gif"></td><td>DHTML</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/xml.gif"></td><td>XML</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/css.gif"></td><td>CSS</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/xls.gif"></td><td>XSLT</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/aspx.gif"></td><td>ASP.NET</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/js.gif"></td><td>JavaScript</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/vbs.gif"></td><td>VBScript</td></tr></table></div>';

All this is one formidable string.... It'is not nice, obviously.

As you can see, the format is:

my_msg[counter] = '<div align="center">My String</div>';

I tried to put "My String" in some separate documents and call them from
there, here, in this JScript. I couldn't make it. Either it gives me errors,
either it does not show anything.

This is the problem I'm trying to solve.... Any ideas ?

Thanks a lot !

Alex.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top