Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

including an asp file

Status
Not open for further replies.

GaryC123

Programmer
Sep 10, 2002
1,041
NO
How do i include an ASP file from a different server into a cell in a table.
Im stuck. Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
The following is how I do includes, but they are in the same directory and I do not know if they based on drive letters or http stuff. And I do not know that if you try to pull an asp page from a different server will the IIS try to render the page or just send the file? When you say different server do you mean on your network or from a different location. Cause if it is on your network then you might be able to make it a virtual directory in IIS which should make calling it easier.


<table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; align=&quot;left&quot; class=&quot;OverAllBody&quot;>
<tr>
<td colspan=&quot;3&quot; align=&quot;left&quot; class=&quot;TitleBody&quot;>
<!-- #include file=&quot;Base_Title.htm&quot; -->
</td>
</tr>
<tr>
<td valign=&quot;top&quot; class=&quot;NavigationBody&quot;>
<!-- #include file=&quot;Base_Navigation.htm&quot; -->
</td>
<td valign=&quot;top&quot; class=&quot;ContentBody&quot;>
<!-- #include file=&quot;Base_TopContent.htm&quot; -->
</td>
<td valign=&quot;top&quot; class=&quot;NewsBody&quot;>
<!-- #include file=&quot;Base_News.htm&quot; -->
</td>
</tr>
<tr>
<td colspan=&quot;3&quot; valign=&quot;top&quot; align=&quot;left&quot; class=&quot;SummaryBody&quot;>
<!-- #include file=&quot;Base_Footer.htm&quot; -->
</td>
</tr>
</table>


Kris
- The most ominous phrase in science: &quot;_Uh_-oh . . .&quot;
 
Or if you map a drive to the foreign machine than you could simply include using the path in relation to the mapped drive :)


-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Tarwn,

Would you please explain how to map the foreign drive. I thought of this solution but have not been able to get it to work.

I log into the computer, map a drive like you state. The web server runs almost all of the time without anyone logged into it so there is not logged in user to read mapped drives from.

How do I get around this problem.

Thanks for the help.

Gabe
 
You will need to set up the permissions on the mapped drive to allow IIS to access the files. Whatever user IIS is using to run will need to have at least read access on the mapped drive. The easiest and least safe way to do this is to simply give the everyone group full control access.

Another option is to create a virtual directory/site in your webserver that points at the diurectory you need on the remote machine, than you could give it a virtual path based on the new virtual directory. The problem with this is that you have then allowed outside users to access that directory if they know what name you have used.

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top