473,804 Members | 2,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2451
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******** *********@TK2MS FTNGP10.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(Se rver.MapPath(Fi lename));

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1393
by: Tor Inge Rislaa | last post by:
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
2
2270
by: Stephen | last post by:
Hey everyone. I was wondering if someone could help me with a small problem. I have designed a user control and I would have inserted it on a aspz page (WebForm1). The User control is being used to help with the navigation through a datagrid. The control handles all the paging issues and on the webform I do all the DataBinding. My problem is that at the end of code of an on-click event for a link button on my user control...
2
4274
by: Todd | last post by:
Hello Folks! Using http://support.microsoft.com/default.aspx?scid=kb;en-us;320847 as a reference, I am trying to pipe the results of an XSL Transformation directly out of a WebApp Default.aspx. The code is as follows; ------------------------------------------ Private Sub Page_Load(...) Handles MyBase.Load 'Put user code to initialize the page here Dim xslDoc As New XslTransform
2
8407
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
6
2019
by: msuk | last post by:
All, I have a ASP.NET/C# webform which contains a Webform button that has a CssClass applied to give it a special effect. Now the same webform has a filefield control but the browse button is the default. I would like to apply the same CssClass style to the browse button is this possible and how? Thanks Msuk
6
2298
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have to type their credentials every time, this seems like a pretty common thing. However, when I try to populate the password HTML textbox from the cookie, the textbox remains blank. However, if I try this from an equivalent web control, the...
4
4489
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use one of my webform pages which includes a button that pops up a window where you can upload files, if you upload files in this popup window, it seems to somehow clear out all of the session variables and the users get logged out. However, if...
5
3755
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library project. The original code for that control was written in VS 2003 for .NET 1.1. I created a Web Project and pulled the VB module into the project. I compared the syntax to the VB template classs that was built and it looked very similar. I then...
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10603
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.