Showing an HTML file in part of a Webform

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Showing an HTML file in part of a Webform

    Showing an HTML file in part of a Webform

    Hi I have a Webform with some buttons on the left side of the form. What I
    want when clicking one of the buttons is to show an HTML document in a part
    of the Webform (as if it was a Frame page). Any suggestions?

    (I am an VB programmer)

    T.I.Rislaa



    Tor Inge Rislaa Guest

  2. Similar Questions and Discussions

    1. Loading part of the HTML page?
      When you answer a feedback guestion in Google with a radio button, only that section of the page reloads and says "thankyou," not the entire page....
    2. Part of website not showing
      A small section of my website www.vvdopsterland.nl is not loading when i visit my site trough internet explorer. It also doesn't show in the...
    3. Displaying part of HTML before and after system() command
      Consider my (simplified) code below: With my old ISP it used to display "Archiving database images ..." then paused for a while (30 secs to a few...
    4. Showing only first part of the field in datagrid
      Hi, I have a XML file as datasource, and I bind it to datagrid. Size of one of the columns in the dataset is quite long and I would like to show...
    5. PDF file from existing WebForm
      You might want to check out ABCpdf for that ability: http://www.websupergoo.com/helppdf3net/4-examples/17-htmlimport.htm "mg" <mg@theworld>...
  3. #2

    Default Re: Showing an HTML file in part of a Webform

    Tor Inge Rislaa wrote:
    > Showing an HTML file in part of a Webform
    >
    > Hi I have a Webform with some buttons on the left side of the form.
    > What I want when clicking one of the buttons is to show an HTML
    > document in a part of the Webform (as if it was a Frame page). Any
    > suggestions?
    >
    > (I am an VB programmer)
    >
    > T.I.Rislaa
    This has nothing to do with ASP. Webforms are a .Net thing right? Try
    posting your question to one of the dotnet groups. Perhaps
    microsoft.public.dotnet.framework.aspnet.

    Bob Barrows


    Bob Barrows Guest

  4. #3

    Default Showing an HTML file in part of a Webform

    Showing an HTML file in part of a Webform

    Hi I have a Webform with some buttons on the left side of the form. What I
    want when clicking one of the buttons is to show an HTML document in a part
    of the Webform (as if it was a Frame page). Any suggestions?

    (I am an VB programmer)

    T.I.Rislaa


    Tor Inge Rislaa Guest

  5. #4

    Default Re: Showing an HTML file in part of a Webform

    Use a frame? Or maybe you'd prefer an IFrame?
    Here's more info on IFrames:
    [url]http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/IFRAME.asp[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Tor Inge Rislaa" <tor.ingenospam@rislaa.no> wrote in message
    news:%23yL%23BeIWDHA.388@TK2MSFTNGP10.phx.gbl...
    > Showing an HTML file in part of a Webform
    >
    > Hi I have a Webform with some buttons on the left side of the form. What I
    > want when clicking one of the buttons is to show an HTML document in a
    part
    > of the Webform (as if it was a Frame page). Any suggestions?
    >
    > (I am an VB programmer)
    >
    > T.I.Rislaa
    >
    >

    Steve C. Orr, MCSD Guest

  6. #5

    Default Re: Showing an HTML file in part of a Webform

    What you could do is to use a table within an aspx page with 1 row, 2
    columns. The first column would contain your buttons, and the second
    one would contain a simple Label. When a button is clicked, you set
    the text of the label with the html code you want.

    In this example DynamicInclude is called when a button is clicked. The
    parameter FileName is the name of the html file you want to display.
    Note that this html file would not have header or body tags, since
    these are already in your .aspx file.

    LabelHTML would the label in the second column of the table in your
    ..aspx page. This kinda act like a frame. Hope this helps!


    public string DynamicInclude(string FileName)
    {
    StreamReader FSO = new StreamReader(Server.MapPath(Filename));

    LabelHTML.Text = FSO.ReadToEnd();

    FSO.Close();
    }



    On Sat, 2 Aug 2003 01:49:15 +0200, "Tor Inge Rislaa"
    <tor.ingenospam@rislaa.no> wrote:
    >Showing an HTML file in part of a Webform
    >
    >Hi I have a Webform with some buttons on the left side of the form. What I
    >want when clicking one of the buttons is to show an HTML document in a part
    >of the Webform (as if it was a Frame page). Any suggestions?
    >
    >(I am an VB programmer)
    >
    >T.I.Rislaa
    >
    Matt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139