473,809 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rephrase: Using a user control like a frame.

I am rephrasing a question from yesterday.
I have a page with several user controls : nav, header, and footer
currently.

What I would like to do is add a new control ('content') and use it like a
frame. Specifically like a "content" or "main" frame.
Can I somehow load the content of another, complete html or aspx page into
this control?
If so how?
Ands If so, how can I load the correct page from a link? (IE:
href=somepage.h tml target=main)
Is this feasible?

Or is this what 'master pages" is for?
I've briefly read about master pages, but it seems pretty complicated in
..net 1.1 .
I'm guessing it will be better supported in .net 2.0.
If what I propose with the user control is not possible or feasible, can
someone point me to a clear tutorial on implementing master pages with .net
1.1, if this is indeed what I'm looking for?

The reasoning behind it: I'm developing a site for a local non-profit (not
paid - its volunteer work) and I really would like to make the site easy for
the staff to update. They will have ftp access, but I don't want them
messing with anything but content, so if they could just upload an html file
be done with it, without touching any of my aspx stuff, that would be great.
Thoughts?

Thanx in advance,
Mark
Nov 18 '05 #1
4 2356

Hi Mark,

You can try using IFRAME. It should also work with controls since it's an
inline html element.

Look below for an example;

http://msdn.microsoft.com/library/de...tingframes.asp

I hope this helps.
"Mark" wrote:
I am rephrasing a question from yesterday.
I have a page with several user controls : nav, header, and footer
currently.

What I would like to do is add a new control ('content') and use it like a
frame. Specifically like a "content" or "main" frame.
Can I somehow load the content of another, complete html or aspx page into
this control?
If so how?
Ands If so, how can I load the correct page from a link? (IE:
href=somepage.h tml target=main)
Is this feasible?

Or is this what 'master pages" is for?
I've briefly read about master pages, but it seems pretty complicated in
..net 1.1 .
I'm guessing it will be better supported in .net 2.0.
If what I propose with the user control is not possible or feasible, can
someone point me to a clear tutorial on implementing master pages with .net
1.1, if this is indeed what I'm looking for?

The reasoning behind it: I'm developing a site for a local non-profit (not
paid - its volunteer work) and I really would like to make the site easy for
the staff to update. They will have ftp access, but I don't want them
messing with anything but content, so if they could just upload an html file
be done with it, without touching any of my aspx stuff, that would be great.
Thoughts?

Thanx in advance,
Mark

Nov 18 '05 #2
You could read the HTML file and stream it at this location....

Patrice

--

"Mark" <py*******@hotm ail.com> a écrit dans le message de
news:et******** ********@TK2MSF TNGP14.phx.gbl. ..
I am rephrasing a question from yesterday.
I have a page with several user controls : nav, header, and footer
currently.

What I would like to do is add a new control ('content') and use it like a
frame. Specifically like a "content" or "main" frame.
Can I somehow load the content of another, complete html or aspx page into
this control?
If so how?
Ands If so, how can I load the correct page from a link? (IE:
href=somepage.h tml target=main)
Is this feasible?

Or is this what 'master pages" is for?
I've briefly read about master pages, but it seems pretty complicated in
.net 1.1 .
I'm guessing it will be better supported in .net 2.0.
If what I propose with the user control is not possible or feasible, can
someone point me to a clear tutorial on implementing master pages with ..net 1.1, if this is indeed what I'm looking for?

The reasoning behind it: I'm developing a site for a local non-profit (not
paid - its volunteer work) and I really would like to make the site easy for the staff to update. They will have ftp access, but I don't want them
messing with anything but content, so if they could just upload an html file be done with it, without touching any of my aspx stuff, that would be great. Thoughts?

Thanx in advance,
Mark

Nov 18 '05 #3
You can load ASCX page snippets dynamically. The problem with loading a
full page inside a page is you've got all the header tags and such twice,
which will confuse the browser. If you could strip out those tags you could
display the body content with few issues. If you need to display the entire
HTML then your only real option is a Frame or IFrame.

Here's more info on IFrames:
http://msdn.microsoft.com/workshop/a...cts/IFRAME.asp

Here's more info on instantiating ASCX controls dynamically:
http://msdn.microsoft.com/library/de...mmatically.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Mark" <py*******@hotm ail.com> wrote in message
news:et******** ********@TK2MSF TNGP14.phx.gbl. ..
I am rephrasing a question from yesterday.
I have a page with several user controls : nav, header, and footer
currently.

What I would like to do is add a new control ('content') and use it like a
frame. Specifically like a "content" or "main" frame.
Can I somehow load the content of another, complete html or aspx page into
this control?
If so how?
Ands If so, how can I load the correct page from a link? (IE:
href=somepage.h tml target=main)
Is this feasible?

Or is this what 'master pages" is for?
I've briefly read about master pages, but it seems pretty complicated in
.net 1.1 .
I'm guessing it will be better supported in .net 2.0.
If what I propose with the user control is not possible or feasible, can
someone point me to a clear tutorial on implementing master pages with
.net
1.1, if this is indeed what I'm looking for?

The reasoning behind it: I'm developing a site for a local non-profit (not
paid - its volunteer work) and I really would like to make the site easy
for
the staff to update. They will have ftp access, but I don't want them
messing with anything but content, so if they could just upload an html
file
be done with it, without touching any of my aspx stuff, that would be
great.
Thoughts?

Thanx in advance,
Mark

Nov 18 '05 #4
Thanks, Ill weigh my options.
Perhaps I'll just heavily comment he code and mark the sexton where the
content will go with a big "Page content here and only here" sign.

Thanks again.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:ul******** ******@TK2MSFTN GP15.phx.gbl...
You can load ASCX page snippets dynamically. The problem with loading a
full page inside a page is you've got all the header tags and such twice,
which will confuse the browser. If you could strip out those tags you could display the body content with few issues. If you need to display the entire HTML then your only real option is a Frame or IFrame.

Here's more info on IFrames:
http://msdn.microsoft.com/workshop/a...cts/IFRAME.asp
Here's more info on instantiating ASCX controls dynamically:
http://msdn.microsoft.com/library/de...mmatically.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Mark" <py*******@hotm ail.com> wrote in message
news:et******** ********@TK2MSF TNGP14.phx.gbl. ..
I am rephrasing a question from yesterday.
I have a page with several user controls : nav, header, and footer
currently.

What I would like to do is add a new control ('content') and use it like a frame. Specifically like a "content" or "main" frame.
Can I somehow load the content of another, complete html or aspx page into this control?
If so how?
Ands If so, how can I load the correct page from a link? (IE:
href=somepage.h tml target=main)
Is this feasible?

Or is this what 'master pages" is for?
I've briefly read about master pages, but it seems pretty complicated in
.net 1.1 .
I'm guessing it will be better supported in .net 2.0.
If what I propose with the user control is not possible or feasible, can
someone point me to a clear tutorial on implementing master pages with
.net
1.1, if this is indeed what I'm looking for?

The reasoning behind it: I'm developing a site for a local non-profit (not paid - its volunteer work) and I really would like to make the site easy
for
the staff to update. They will have ftp access, but I don't want them
messing with anything but content, so if they could just upload an html
file
be done with it, without touching any of my aspx stuff, that would be
great.
Thoughts?

Thanx in advance,
Mark


Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9878
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
1
1537
by: Francois Gagnon | last post by:
Hi, I have the following scenario. THe side is built using 2 frames. The top frame is a menu where the bottom one is the content. The top frame allows th user to select what document he wants to see, the it is displayed in the bottom frame. When the user selects a report in the top frame, a form is submitted with its target as the bottom frame (and I don't use GET but POST instead). The server receiving the post reply with the...
1
3296
by: trapeze.jsg | last post by:
Hi. I am trying to get through to Microsoft MapPoint Services using ZSI for soap handling. I can generate the service classes and also the soap-requests generated by the service classes seem to be OK. The problem I am facing is that I can't seem to authenticate myself. I have made a small change to ZSI.client so that when I get a "401 Unauthorized" response from the remote server I build up a nice authorization request:
5
3812
by: Miyra | last post by:
Hi. I'm working with an app that uses exceptions for control flow. These are code blocks where exceptions are thrown/caught regularly. A couple hundred exceptions occur per hour and they're caught close to the point of origination. I'm trying to decide whether to refactor... What is the cost of throwing an exception in the CLR - relative to, say, a conditional statement? Are we taking talking 1+ orders of magnitude? Is there...
1
3025
by: Anita C | last post by:
Hi, How cookies can be used to set and then determine the last page visited by a person browsing a particular website ? Also the page last visited is loaded in an iframe, so the page last visited inside a particular iframe is what really needs to be determined. So when the application starts up the next time, if the last page visited was admin.aspx inside frame IContent, then show admin.aspx in Icontent or else show home.aspx. A code...
5
1633
by: Dag | last post by:
Hi all, I have a project where we use lots of user controls. We would like to move them to private assemblied custom controls but from what I see this can't be done because the .ascx file must be in the main project as a file...in other words, it doesn't look like you can add a reference to a custom created control and leverage an .asxc within it. Is this correct?
4
3054
by: Max | last post by:
Hello, here a user control named aff.ascx : (this control is used to see the contains of a link) <%@ Control Language="VB" %> <script runat="server"> ' Insert user control code here Public adr As String </script>
3
1418
by: Patrick | last post by:
I need to develop a website bearing the following in mind, - the site will have to be dymanic (i.e. the layout can change from time to time), - its a church website My initial intention was to go with frames, but I've learnt that thats just not the way to go... reasons for considering frames, - the menus and header could be maintained in a single frame (static content)
1
1650
by: | last post by:
How do I control the layering of 4 forms of identical size and position to cause the desired form to be second from the top.. Form1 has my welcome screen etc.and the code for file manipulations etc. etc Form2 has a foreground image of a decorative picture frame (,png image) with a transparent center, and a tab control for the user to select .bmp pictures to view. Form3 has a "picturebox" into which is loaded the user.bmp file image
0
9601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10635
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
10378
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
9198
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
7653
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
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
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...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3013
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.