470,620 Members | 1,473 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,620 developers. It's quick & easy.

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
Nov 17 '05 #1
2 2333
Use a frame? Or maybe you'd prefer an IFrame?
Here's more info on IFrames:
http://msdn.microsoft.com/workshop/a...cts/IFRAME.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Tor Inge Rislaa" <to************@rislaa.no> wrote in message
news:%2*****************@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

Nov 17 '05 #2
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"
<to************@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


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tor Inge Rislaa | last post: by
6 posts views Thread by msuk | last post: by
5 posts views Thread by John Kotuby | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.