473,505 Members | 16,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Sytem Object versus MSXML

Hello:

I need to dynamically include documents stored in my own website.
The website is coded in ASP.
As far as I know there are two common options: FSO and the MSXML Objects.
Which one of the two would be less of a resource hog for IIS ? Keep in mind
that the documetns I want to include are stored in the server where the
website resides, not on another webserver. Otherwise I'd have no choice but
to use msxml.

Thanks in advance.

Edward
Jan 16 '07 #1
7 1772

"Edward" <no****@nowhere.comwrote in message
news:qs8rh.662035$1T2.29971@pd7urf2no...
Hello:

I need to dynamically include documents stored in my own website.
The website is coded in ASP.
As far as I know there are two common options: FSO and the MSXML Objects.
Which one of the two would be less of a resource hog for IIS ? Keep in
mind
that the documetns I want to include are stored in the server where the
website resides, not on another webserver. Otherwise I'd have no choice
but
to use msxml.
I'm not sure why you would think MSXML would figure in any such solution.
FSO is easy enough to use for standard text content. ADODB.Stream is a more
flexible solution that handles both text and binary content fairly well
Thanks in advance.

Edward


Jan 16 '07 #2
Edward wrote:
I need to dynamically include documents stored in my own
website. The website is coded in ASP.
Depending on what you mean by "dynamically include", you could include
Server.Execute() or <IFRAMEto solve your problem, as well.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Jan 16 '07 #3
"Edward" <no****@nowhere.comwrote in message
news:qs8rh.662035$1T2.29971@pd7urf2no...
Hello:

I need to dynamically include documents stored in my own website.
The website is coded in ASP.
As far as I know there are two common options: FSO and the MSXML Objects.
Which one of the two would be less of a resource hog for IIS ? Keep in
mind
that the documetns I want to include are stored in the server where the
website resides, not on another webserver. Otherwise I'd have no choice
but
to use msxml.

Thanks in advance.
Are you aware of this?

<!--#include file="{yourFile}"-->
Jan 16 '07 #4
Thank you guys for the replies.

1. Yes, I know about includes. The known problem with includes is that one
cannot use variables in them.

2. I didn't know about Server.Execute (Yeah, I know, I am a newbie LOL).
This will be for me the best solution when it comes to dynamically inserting
local documents into my ASP pages.
There are some limitations, of course, like variables not passed back and
forth between documents.

3. I still will use XMLHTTP to fetch some content from other server(s). Some
of the advantages of this over the suggested IFRAME tag are:

a- The content becomes part of your page, making search engines spider it as
if were yours.
b- With IFRAME the inserted page probably won't be spidered, and it would
create an additional scroll bar, which tends to confuse visitors.

Thanks again for the feedback

Edward
Jan 16 '07 #5
On Tue, 16 Jan 2007 16:19:29 -0600, Edward <no****@nowhere.comwrote:
2. I didn't know about Server.Execute (Yeah, I know, I am a newbie LOL).
This will be for me the best solution when it comes to dynamically
inserting
local documents into my ASP pages.
There are some limitations, of course, like variables not passed back and
forth between documents.
You can use the MTxSpm.SharedPropertyGroupManager object to pass
information between pages. You can pass anything you like from a page to
any page it calls using Server.Execute, and those pages can pass scalars
(but not objects) back. A short example follows:

index.asp:
<% Option Explicit

' A function that will be exposed to the page
Function F : F = "index.asp -- F()" : End Function

' Determine the page to execute
Dim page
Select Case Request.QueryString("page")
Case "c" : page = "c.asp"
Case "b" : page = "b.asp"
Case Else: page = "a.asp"
End Select

' Create a shared property group for that page
Dim grpMgr, propGrp, prop
Set grpMgr = CreateObject("MTxSpm.SharedPropertyGroupManager")
Set propGrp = grpMgr.CreatePropertyGroup(page, 0, 0, Empty)

' Create a shared property that provides access to F()
Set prop = propGrp.CreateProperty("F", Empty)
prop.Value = GetRef("F")
Server.Execute page
%>

a.asp, b.asp, c.asp (be sure to change the value of the Page constant for
each):
<% Option Explicit
Const Page = "a.asp"

' Get the shared property group the page
Dim grpMgr, propGrp, prop
Set grpMgr = CreateObject("MTxSpm.SharedPropertyGroupManager")
Set propGrp = grpMgr.CreatePropertyGroup(Page, 0, 0, Empty)

' Get the shared property that provides access to F()
Set prop = propGrp.CreateProperty("F", Empty)

Response.ContentType = "text/plain"
Response.Write "This is " & Page & vbNewLine

If IsObject(prop.Value) Then
Dim f: Set f = prop.Value
Response.Write "Got " & TypeName(prop.Value) & vbNewLine
Response.Write f()
Else
Response.Write "Expected function object but got " _
& TypeName(prop.Value) & vbNewLine
End If
%>
--
Justin Piper
Bizco Technologies
http://www.bizco.com/
Jan 16 '07 #6

"Edward" <no****@nowhere.comwrote in message
news:Rbcrh.662595$1T2.472934@pd7urf2no...
Thank you guys for the replies.

1. Yes, I know about includes. The known problem with includes is that one
cannot use variables in them.
True, but you can conditionally include files if you know there names, which
I suppose you must do if they reside on your server?

<%
Select Case True
Case a
%>
<!--#include file="a.asp"-->
<%
Case b
%>
<!--#include file="b.asp"-->
%>
....
<%
End Select
%>

If you have loads of them, this approach might not be practical though...

--
Mike Brind
Jan 17 '07 #7
Mike Brind wrote:
<%
Select Case True
Case a
%>
<!--#include file="a.asp"-->
<%
Case b
%>
<!--#include file="b.asp"-->
%>
...
<%
End Select
%>

If you have loads of them, this approach might not be practical
though...
Especially since every single one of them must be parsed every time the page
is requested.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Jan 17 '07 #8

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

Similar topics

3
1922
by: Girish | last post by:
I have this XML FILE where I am reading data from and it has this node doctype "< ! D O C T Y P E a d f S Y S T E M " h t t p : / / w h o s c a l l i n g . c o m / d t d / a d f d t d . d t d...
11
3580
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
3
4856
by: awong | last post by:
Hi there, I was trying to convert the following VB6 code to VB.NET. But I can't find a corresponding System.XML object for MSXML IXMLDOMSelection. I am thinking to use System.XML XMLNodeList...
4
3620
by: Jozef | last post by:
Hello, I'd like to determine the size of a file via a URL. I'm not even sure how to do this on the local machine, let alone a URL. Any help would be greatly appreciated. Thanks!
13
4281
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
0
1424
by: MLH | last post by:
http://www.alltel.com/text_messaging/ Above is the URL to which one would direct his browser to send text message to Alltel customer. I wrote a VBA script to automate text messaging field...
13
25070
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
1
1285
by: mlh | last post by:
I'm using VBA and msXML to read response text from web page. Am having some problems. The 2nd Open-Get statement has a flawed URL. The first URL reaches a page that has a thousand or more buttons...
6
7975
by: Anthony Jones | last post by:
People, Anyone else got an IIS7 server out there that they can test this little ASP file:- <% Set xml = Server.CreateObject("MSXML2.DOMDocument.3.0") xml.loadXML "<root />" Set xsl =...
0
7103
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...
0
7307
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
7370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7021
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
5614
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,...
1
5035
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...
0
4701
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...
0
1532
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 ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.