External HTML

Discussion in 'ASP .Net' started by Steve C. Orr [MVP, MCSD], Mar 30, 2005.

  1. Steve C. Orr [MVP, MCSD], Mar 30, 2005
    1. Advertisements

  2. Steve C. Orr [MVP, MCSD]

    Scott M. Guest

    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.
    Scott M., Mar 30, 2005
    1. Advertisements

  3. Steve C. Orr [MVP, MCSD]

    gabe garza Guest

    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)
    gabe garza, Mar 31, 2005
  4. Steve C. Orr [MVP, MCSD]

    darrel Guest

    Use a HTML IFRAME Tag
    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

    darrel, Mar 31, 2005
  5. Steve C. Orr [MVP, MCSD]

    Scott M. Guest

    I agree. Most folks steer clear of IFRAMES.

    Scott M., Mar 31, 2005
  6. 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-)

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

    Thank you
    Alex Nitulescu, Mar 31, 2005
  7. 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


    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

    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 Nitulescu, Apr 1, 2005
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.