473,322 Members | 1,734 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,322 software developers and data experts.

SSI Hierarchy and Implementation

Hi, folks.

It seems like everything I've been reading indicates that I cannot "Include" a *.aspx file located in a higher level directory from that of the calling page's directory...even if I use an absolute path (from docroot):

Page location:
/products/documents/Default.aspx

Include file location:
<!-- #Include File="/includes/Header.aspx" -->

I want to use Header.aspx (which contains additional .NET and HTML code) in all of the pages throughout the site, which could be as deep as:

/1/2/3/4/Default.aspx

....or directly at the document root:

/Default.aspx

We're using C# for all of the pages of a new site that my team is developing. So, I need to know the options and best practices for ASPX SSI up-front. The closest KB article that I found for a workaround was the following one, but even it doesn't mention the ability to call includes located in upper level directories (but still under docroot):

http://support.microsoft.com/default...;EN-US;q306575

I "may" be able to find a way to avoid using server-side code in the SSI, but I'd still like to be able to call that SSI no matter where it resides. Any solid information, tips, or URLs would be greatly appreciated.

TIA,

Bob
Nov 18 '05 #1
1 1151
"WebGuyBob" <an*******@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.com...
Hi, folks.

It seems like everything I've been reading indicates that I cannot

"Include" a *.aspx file located in a higher level directory from that of the
calling page's directory...even if I use an absolute path (from docroot):

"Cannot" may not be accurate. "Should not" is accurate.

ASP.NET has User Controls as a mechanism to share content within a site.
They are much better than SSI includes, and can often be converted from an
SSI include directly by the following method:

1) Create a new user control in VS.NET. Use the same name as the SSI, but
with the .ascx extension. It will start off empty
2) Go to the HTML view of the control
3) Copy and paste from the SSI to the user control

You should now be able to just drag the user control onto the design view of
any page that needs it.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2

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

Similar topics

1
by: Chris Lasher | last post by:
Hello, I'm trying to write a tool to scrape through some of the Ribosomal Database Project II's (http://rdp.cme.msu.edu/) pages, specifically, through the Hierarchy Browser....
1
by: Marco Alting | last post by:
Hi I'm trying to create an input screen that allows users to create a hierarchical structure as the one below, but have no clue where to start or how to construct it. Can anyone help me out...
0
by: archway | last post by:
Hi, I would like to build a hierarchy of ProductNode objects like so ProductNode ---Product Node ---ProductNode ------ProductNode ------ProductNode ---ProductNode
2
by: Matt | last post by:
Hello, I would like to generate what I call an "overall class hierarchy" in UML automatically derived from my C++ code source. An example of what I seek: ...
2
by: Yaro | last post by:
Hi All (UDB 8.1 FP8, Win) In my simple test database, I have two tables CREATE TABLE "DB2ADMIN"."AAA" ( "F1" INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY, "F2" VARCHAR(10), PRIMARY KEY...
21
by: Mark Broadbent | last post by:
Consider the following statements //------- Item i = Basket.Items; //indexer is used to return instance of class Item Basket.Items.Remove(); //method on class item is fired item i = new...
2
by: Do | last post by:
Hi, I have a database table with the following fields: id, name, parentid. These fields are supposed to create a hierarchy for a list box, an infinite hierarchy Child fields of parent fields...
2
by: FrankEBailey | last post by:
I've been reading up on Modified Preorder Tree Traversal and it's definitely ideal for the kind of tree structures I need to model for my company's multi-level sales hierarchy. I've implemented the...
8
by: Jeffrey Barish | last post by:
I believe that the answer to my question is no, but I want to be sure that I understand this issue correctly: Suppose that there are two classes defined as follows: class A(object): def...
3
by: krzysztof.konopko | last post by:
Hello! I want to design a class hierarchy with one base abstract class, let's say CBase. I have a predicate that every object in the class hierarchy must have a parent object of type from this...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.