473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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.html 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 2340

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.html 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*******@hotmail.com> a écrit dans le message de
news:et****************@TK2MSFTNGP14.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.html 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*******@hotmail.com> wrote in message
news:et****************@TK2MSFTNGP14.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.html 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.net> wrote in message
news:ul**************@TK2MSFTNGP15.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*******@hotmail.com> wrote in message
news:et****************@TK2MSFTNGP14.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.html 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
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 ...
1
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...
1
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...
5
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...
1
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...
5
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...
4
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...
3
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...
1
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
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...

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.