Hi. I have some documents (containing either plain text, either HTML) and
I'd like to be able to show the contents on those files in different places
on my website.
The question is how do I show them ? I have tried with <a href=...../> but
nothing shows ! I have also tried with <link....., with the same (non-)
result.
Which is the correct way to include the same paragraph in different places
on my pages ?
Thank you
Alex 6 1329
Controls are the most used way to have common HTML show in multiple places
throughout a web site.
Here's more info: http://SteveOrr.net/faq/usercustom.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Alex Nitulescu" <RE************ ***********@yah oo.com> wrote in message
news:Ow******** ******@TK2MSFTN GP09.phx.gbl... Hi. I have some documents (containing either plain text, either HTML) and I'd like to be able to show the contents on those files in different places on my website.
The question is how do I show them ? I have tried with <a href=...../> but nothing shows ! I have also tried with <link....., with the same (non-) result.
Which is the correct way to include the same paragraph in different places on my pages ?
Thank you Alex
Create a user control that contains your data, then just drag that user
control (.ascx file) on to you page where you want the data.
"Alex Nitulescu" <RE************ ***********@yah oo.com> wrote in message
news:Ow******** ******@TK2MSFTN GP09.phx.gbl... Hi. I have some documents (containing either plain text, either HTML) and I'd like to be able to show the contents on those files in different places on my website.
The question is how do I show them ? I have tried with <a href=...../> but nothing shows ! I have also tried with <link....., with the same (non-) result.
Which is the correct way to include the same paragraph in different places on my pages ?
Thank you Alex
Use a HTML IFRAME Tag
<iframe src="filename.e xt" frameborder=0></iframe>
filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...
I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS X)
"Alex Nitulescu" <RE************ ***********@yah oo.com> wrote in message
news:Ow******** ******@TK2MSFTN GP09.phx.gbl... Hi. I have some documents (containing either plain text, either HTML) and I'd like to be able to show the contents on those files in different places on my website.
The question is how do I show them ? I have tried with <a href=...../> but nothing shows ! I have also tried with <link....., with the same (non-) result.
Which is the correct way to include the same paragraph in different places on my pages ?
Thank you Alex
> Use a HTML IFRAME Tag <iframe src="filename.e xt" frameborder=0></iframe>
filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...
I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS X)
Only do this as a last resort. If you have access to server-side technology
(and I assume folks do when posting in a .net newsgroup) it'd be much better
to do this server side with controls, or even just good 'ol server side
include.
-Darrel
I agree. Most folks steer clear of IFRAMES.
"darrel" <no*****@hotmai l.com> wrote in message
news:OM******** ******@TK2MSFTN GP10.phx.gbl... Use a HTML IFRAME Tag
<iframe src="filename.e xt" frameborder=0></iframe>
filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...
I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS X)
Only do this as a last resort. If you have access to server-side technology (and I assume folks do when posting in a .net newsgroup) it'd be much better to do this server side with controls, or even just good 'ol server side include.
-Darrel
Hi. Thank you for your answers.
Let me give you, however, some specs:
In the head of an ASPX page I have a Java script to which I have to pass
some strings - it will build an array and make them scroll vertically along
the container (screen), as the credits in a movie.
For instance, I have:
my_msg[0] = '<div align="center"> <u>  Credits for my wesbite
 </u></div>';
and
my_msg[1] = '<div align="center"> <a>Website name here</a> is an example
website written by Alex to illustrate the principles of design,
specification, and implementation of a content-based website in ASP.NET.
This website is a three-tiered solution (Presentation Layer, Business Layer,
and the Data Services Layer).</div>';
and so on. I even have one of the messages which shows a table, like this:
my_msg[9] = '<div align="center"> <table cellpadding=2 cellspacing=2 border=1
bordercolor=dee pskyblue bgcolor=#000066 style="COLOR: lightskyblue;
FONT-FAMILY: Arial"><tr align=center><t d colspan=2><a>My Website</a> uses the
following technologies:</td></tr><tr align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/html.gif"></td><td>HTML</td></tr><tr
align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/html.gif"></td><td>DHTML</td></tr><tr
align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/xml.gif"></td><td>XML</td></tr><tr
align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/css.gif"></td><td>CSS</td></tr><tr
align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/xls.gif"></td><td>XSLT</td></tr><tr
align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/aspx.gif"></td><td>ASP.NET</td></tr><tr
align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/js.gif"></td><td>JavaScri pt</td></tr><tr
align=center><t d><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/vbs.gif"></td><td>VBScript </td></tr></table></div>';
All this is one formidable string.... It'is not nice, obviously.
As you can see, the format is:
my_msg[counter] = '<div align="center"> My String</div>';
I tried to put "My String" in some separate documents and call them from
there, here, in this JScript. I couldn't make it. Either it gives me errors,
either it does not show anything.
This is the problem I'm trying to solve.... Any ideas ?
Thanks a lot !
Alex. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chuck Mendell |
last post by:
I am having problem with external javascripts. My OS is XP Pro. I am told to
create an external javascript using a .js extension. (I did that) The
external .js is very simple, containing:
function a_message()
{
alert('I came from an external script! Ha, Ha, Ha!!!!');
}
I am told to create an HTML page that accesses the .js script. (I did that).
|
by: kinne |
last post by:
Is it possible to pass a parameter to an external ".js" file?
Kinne
|
by: mb |
last post by:
Hi,
I picked up this JavaScript code (quiz code) at:
http://javascript.internet.com/miscellaneous/multiple-choice-quiz.html
and modified it (and may have deleted some line I shouldn't have) so
that it looks like this on my web site:
http://www.goalseek.net/Scripts/qa_XL_History.htm
|
by: dennise9 |
last post by:
My exeternal JS works fine when the call is placed in the page head or
body.
But if I call the same javascript from a (clicked) text link on the
page, the script throws a JS error when it executes.
Help! I can't figure this out.
The external JS file is "members.js". Here's the code:
|
by: dmcomer |
last post by:
In the context of parsing and preserving HTML tags in an XSL stylesheet, I understand the difference between
<xsl:value-of select="body"/>
and
<xsl:copy-of select="body>
However, I am trying to, with a twist on the above, pass the copy-of string to an external XSLT function. That is, in .NET 2.0, I am attempting something like the following (not that .NET applies to the XSL below, but just so you know the environment context):
| |
by: =?Utf-8?B?c25naWxi?= |
last post by:
I am having 3 issues with the WebBrowser control which may all be related.
The HTML for the page is the standard Weather Magnet from weather.com. The
actual HTML is at the bottom of this page.
Issue 1: I am opening a page in the control in the development environment
and the document comes up correctly. But, when I click a link in the
resulting document, an external IE instance comes up with the requested page.
I have see reference to...
|
by: althafexcel |
last post by:
hi everyone
Im trying to include an external js in my aspx page under the head
tag, it doesn't load or it displays an object expected error whenver
the function from the .js is called. Actually for repeated html im
using the external js, i mean the TOP, BOTTOM they are repeated in
every page, so i include them as functions in the external js and call
them. Why it doesn't work?
|
by: RICHARD BROMBERG |
last post by:
I have a simple program to test using an external .js file.
This external file contains some functions that I need to call from several html programs.
The program as written below works fine.
1. <html>
2. <head>
3. <meta http-equiv="Content-Language" content="en-us">
4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
5. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
6. ...
|
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,...
|
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...
|
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,...
| |
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |