Making a page formatter c#

Posted on 2004-11-30
Last Modified: 2010-04-06
I was wondering if anyone could give me some pointers on how to make a URL like this  and have it place the html page in a frame within the .net page.

I have seen this done many times, but I don’t know the proper terms or have an example to look at.

Question by:sean-keys
    LVL 18

    Expert Comment


    Author Comment

    but how can i make the target part of the main URL it self?

    Like this

    I'm not sure if a "?" is the correct character to use.

    LVL 19

    Accepted Solution

    Will something like this help?  You use a bit of javascript to extract the link from the URL, and then set the src of the iframe to what's there.  Hope that helps.

    <script type="text/javascript">
    window.onload = setSrc;

    function setSrc()
      var str =;
      document.getElementById("theIframe").src = str;

    <iframe id="theIframe" src=""></iframe>

    Author Comment

    Lookss like that might get it.  I'll see if i cant make something work.


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now