Hi,
I have an xslt file located in the root directory. It is used by an aspx pages in both the root
directory and a subdirectory. But for some strange reason, the aspx page in the subdirectory can
neither locate the xslt file or the css file needed to get the desired results.
What's the problem? Can anyone help me?
Thanks,
Roshawn 7 1245
Is the browser having trouble getting it, or some of your server code? How
are you trying to interact with it? Are you using relative or absolute
URLs? Is you are trying to do this on the server, are you accessing the
correct physical folder?
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message
news:uO******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I have an xslt file located in the root directory. It is used by an aspx pages in both the root directory and a subdirectory. But for some strange reason, the aspx page in the subdirectory can neither locate the xslt file or the css file needed to get the desired results.
What's the problem? Can anyone help me?
Thanks, Roshawn
Hi Peter and thanks for responding.
I'm using relative urls. The browser doesn't have any trouble getting it. To give you a better
picture of what I'm dealing with, here's what I have:
1.) the root directory contains a default.aspx page, css file, and an xslt file that thats used by
the default.aspx page and a page in the subdirectory
2.) a subdirectory named "Foo" that contains a default.aspx page.
The xslt file creates the html output I want. Inside the xslt file I make use of the css file.
When it comes to the xslt file, ASP.NET gives me a System.IO.FileN otFoundExceptio n. It states that
it cannont find the xslt file in the subdirectory. I took that to mean that the xslt file must also
exist in the subdirectory.
I've checked to make sure that I'm doing everything as I should but nothing seems to work.
Thanks anyway,
Roshawn
Peter Rilling wrote: Is the browser having trouble getting it, or some of your server code? How are you trying to interact with it? Are you using relative or absolute URLs? Is you are trying to do this on the server, are you accessing the correct physical folder?
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uO******** ******@TK2MSFTN GP10.phx.gbl...
Hi,
I have an xslt file located in the root directory. It is used by an aspx pages in both the root directory and a subdirectory. But for some strange reason, the aspx page in the subdirectory can neither locate the xslt file or the css file needed to get the desired results.
What's the problem? Can anyone help me?
Thanks, Roshawn
Can you post some small snippet what you are trying to do.
Patrick
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message
news:uK******** ******@TK2MSFTN GP09.phx.gbl... Hi Peter and thanks for responding.
I'm using relative urls. The browser doesn't have any trouble getting it.
To give you a better picture of what I'm dealing with, here's what I have:
1.) the root directory contains a default.aspx page, css file, and an xslt
file that thats used by the default.aspx page and a page in the subdirectory
2.) a subdirectory named "Foo" that contains a default.aspx page.
The xslt file creates the html output I want. Inside the xslt file I make
use of the css file. When it comes to the xslt file, ASP.NET gives me a
System.IO.FileN otFoundExceptio n. It states that it cannont find the xslt file in the subdirectory. I took that to mean
that the xslt file must also exist in the subdirectory.
I've checked to make sure that I'm doing everything as I should but
nothing seems to work. Thanks anyway, Roshawn
Peter Rilling wrote: Is the browser having trouble getting it, or some of your server code?
How are you trying to interact with it? Are you using relative or absolute URLs? Is you are trying to do this on the server, are you accessing the correct physical folder?
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uO******** ******@TK2MSFTN GP10.phx.gbl...
Hi,
I have an xslt file located in the root directory. It is used by an
aspxpages in both the root directory and a subdirectory. But for some
strangereason, the aspx page in the subdirectory can neither locate the xslt
fileor the css file needed to get the desired results.
What's the problem? Can anyone help me?
Thanks, Roshawn
Hi Patrick
This is the snippet from the default.aspx page in the subdirectory:
Private Sub GetDetails(ByVa l id As String)
Dim sb as New StringBuilder()
sb.Append(Confi gurationSetting s.AppSettings(" ItemLookup") & "&SubscriptionI d=" &
ConfigurationSe ttings.AppSetti ngs("SubID") & "&Version=" &
ConfigurationSe ttings.AppSetti ngs("Version") & "&Operation=Ite mLookup&ItemId= " & id &
"&ResponseGroup =Large")
Dim tr As XmlTextReader = New XmlTextReader(s b.ToString)
Dim xDoc As XPathDocument = New XPathDocument(t r)
Dim htw As HtmlTextWriter = New HtmlTextWriter( Response.Output )
Dim trans as XslTranform = new XslTransform()
trans.Load(Serv er.MapPath(Conf igurationSettin gs.AppSettings( "Myfile"))
trans.Transform (xDoc, Nothing, htw)
End Sub
This procedure is called during the Page_Load event. All I'm doing is attempting to transform the
xml that I receive from a third party (I actually get data so that is not an issue). Remember that
the xslt file is used by the default.aspx page in the root directory and the default.aspx page in
the subdirectory.
HTH,
Roshawn
Patrick.O.Ige wrote: Can you post some small snippet what you are trying to do. Patrick
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uK******** ******@TK2MSFTN GP09.phx.gbl...
Hi Peter and thanks for responding.
I'm using relative urls. The browser doesn't have any trouble getting it.
To give you a better
picture of what I'm dealing with, here's what I have:
1.) the root directory contains a default.aspx page, css file, and an xslt
file that thats used by
the default.aspx page and a page in the subdirectory
2.) a subdirectory named "Foo" that contains a default.aspx page.
The xslt file creates the html output I want. Inside the xslt file I make
use of the css file.
When it comes to the xslt file, ASP.NET gives me a
System.IO.FileN otFoundExceptio n. It states that
it cannont find the xslt file in the subdirectory. I took that to mean
that the xslt file must also
exist in the subdirectory.
I've checked to make sure that I'm doing everything as I should but
nothing seems to work.
Thanks anyway, Roshawn
Peter Rilling wrote:
Is the browser having trouble getting it, or some of your server code? How are you trying to interact with it? Are you using relative or absolute URLs? Is you are trying to do this on the server, are you accessing the correct physical folder?
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uO***** *********@TK2MS FTNGP10.phx.gbl ...
Hi,
I have an xslt file located in the root directory. It is used by an aspx pages in both the root directory and a subdirectory. But for some strange reason, the aspx page in the subdirectory can neither locate the xslt file or the css file needed to get the desired results.
What's the problem? Can anyone help me?
Thanks, Roshawn
What's the value of ConfigurationSe ttings.AppSetti ngs("Myfile") ?
Jevon
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message
news:eF******** ******@TK2MSFTN GP10.phx.gbl... Hi Patrick
This is the snippet from the default.aspx page in the subdirectory:
Private Sub GetDetails(ByVa l id As String) Dim sb as New StringBuilder() sb.Append(Confi gurationSetting s.AppSettings(" ItemLookup") & "&SubscriptionI d=" & ConfigurationSe ttings.AppSetti ngs("SubID") & "&Version=" & ConfigurationSe ttings.AppSetti ngs("Version") & "&Operation=Ite mLookup&ItemId= " & id & "&ResponseGroup =Large") Dim tr As XmlTextReader = New XmlTextReader(s b.ToString) Dim xDoc As XPathDocument = New XPathDocument(t r) Dim htw As HtmlTextWriter = New HtmlTextWriter( Response.Output ) Dim trans as XslTranform = new XslTransform() trans.Load(Serv er.MapPath(Conf igurationSettin gs.AppSettings( "Myfile")) trans.Transform (xDoc, Nothing, htw) End Sub
This procedure is called during the Page_Load event. All I'm doing is attempting to transform the xml that I receive from a third party (I actually get data so that is not an issue). Remember that the xslt file is used by the default.aspx page in the root directory and the default.aspx page in the subdirectory.
HTH, Roshawn
Patrick.O.Ige wrote: Can you post some small snippet what you are trying to do. Patrick
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uK******** ******@TK2MSFTN GP09.phx.gbl...
Hi Peter and thanks for responding.
I'm using relative urls. The browser doesn't have any trouble getting it.
To give you a better
picture of what I'm dealing with, here's what I have:
1.) the root directory contains a default.aspx page, css file, and an xslt
file that thats used by
the default.aspx page and a page in the subdirectory
2.) a subdirectory named "Foo" that contains a default.aspx page.
The xslt file creates the html output I want. Inside the xslt file I make
use of the css file.
When it comes to the xslt file, ASP.NET gives me a
System.IO.FileN otFoundExceptio n. It states that
it cannont find the xslt file in the subdirectory. I took that to mean
that the xslt file must also
exist in the subdirectory.
I've checked to make sure that I'm doing everything as I should but
nothing seems to work.
Thanks anyway, Roshawn
Peter Rilling wrote:
Is the browser having trouble getting it, or some of your server code?
How
are you trying to interact with it? Are you using relative or absolute URLs? Is you are trying to do this on the server, are you accessing the correct physical folder?
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uO**** **********@TK2M SFTNGP10.phx.gb l...
>Hi, > >I have an xslt file located in the root directory. It is used by an
aspx
>pages in both the root directory and a subdirectory. But for some
strange
>reason, the aspx page in the subdirectory can neither locate the xslt
file
>or the css file needed to get the desired results. > >What's the problem? Can anyone help me? > >Thanks, >Roshawn
Hi Jevon,
It's "Myfile.xsl t"
HTH,
Roshawn
Jevon wrote: What's the value of ConfigurationSe ttings.AppSetti ngs("Myfile") ?
Jevon
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:eF******** ******@TK2MSFTN GP10.phx.gbl...
Hi Patrick
This is the snippet from the default.aspx page in the subdirectory:
Private Sub GetDetails(ByVa l id As String) Dim sb as New StringBuilder() sb.Append(Confi gurationSetting s.AppSettings(" ItemLookup") & "&Subscriptio nId=" & ConfigurationSe ttings.AppSetti ngs("SubID") & "&Version=" & ConfigurationSe ttings.AppSetti ngs("Version") & "&Operation=I temLookup&ItemI d=" & id & "&ResponseGroup =Large") Dim tr As XmlTextReader = New XmlTextReader(s b.ToString) Dim xDoc As XPathDocument = New XPathDocument(t r) Dim htw As HtmlTextWriter = New HtmlTextWriter( Response.Output ) Dim trans as XslTranform = new XslTransform() trans.Load(Serv er.MapPath(Conf igurationSettin gs.AppSettings( "Myfile")) trans.Transform (xDoc, Nothing, htw) End Sub
This procedure is called during the Page_Load event. All I'm doing is attempting to transform the xml that I receive from a third party (I actually get data so that is not an issue). Remember that the xslt file is used by the default.aspx page in the root directory and the default.asp x page in the subdirectory.
HTH, Roshawn
Patrick.O.I ge wrote:
Can you post some small snippet what you are trying to do. Patrick
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uK***** *********@TK2MS FTNGP09.phx.gbl ...
Hi Peter and thanks for responding.
I'm using relative urls. The browser doesn't have any trouble getting it.
To give you a better
picture of what I'm dealing with, here's what I have:
1.) the root directory contains a default.aspx page, css file, and an xslt
file that thats used by
the default.aspx page and a page in the subdirectory
2.) a subdirectory named "Foo" that contains a default.aspx page.
The xslt file creates the html output I want. Inside the xslt file I make
use of the css file.
When it comes to the xslt file, ASP.NET gives me a
System.IO.Fi leNotFoundExcep tion. It states that
it cannont find the xslt file in the subdirectory. I took that to mean
that the xslt file must also
exist in the subdirectory.
I've checked to make sure that I'm doing everything as I should but
nothing seems to work.
Thanks anyway, Roshawn
Peter Rilling wrote:
>Is the browser having trouble getting it, or some of your server code?
How
>are you trying to interact with it? Are you using relative or absolute >URLs? Is you are trying to do this on the server, are you accessing the >correct physical folder? > >"Roshawn Dawson" <ud****@bellsou th.net> wrote in message >news:uO*** ***********@TK2 MSFTNGP10.phx.g bl... > > > >>Hi, >> >>I have an xslt file located in the root directory. It is used by an
aspx
>>pages in both the root directory and a subdirectory. But for some
strange
>>reason, the aspx page in the subdirectory can neither locate the xslt
file
>>or the css file needed to get the desired results. >> >>What's the problem? Can anyone help me? >> >>Thanks, >>Roshawn > > >
Hi Roshawn,
From that it looks like you're either misunderstandin g how virtual
directories work, how Server.MapPath works, or both :)
By having "Myfile.xsl t" in that variable in the sub directory, for example
/foo/, when you run Server.MapPath on it in /foo/default.aspx, you map to
/foo/Myfile.xslt, not /Myfile.xslt, as you seem to expect. Server.MapPath
works from the current path, not the root. I think, to get everything
working correctly, you just need to change the "Myfile" setting to
"../Myfile.xslt" - but only in the sub directory, not the root.
I don't know how the CSS is linked/how XLST tranformation actually works,
you might need to do something similar with the path to the CSS file as
well.
Jevon
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message
news:O6******** ******@TK2MSFTN GP15.phx.gbl... Hi Jevon,
It's "Myfile.xsl t"
HTH, Roshawn
Jevon wrote: What's the value of ConfigurationSe ttings.AppSetti ngs("Myfile") ?
Jevon
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:eF******** ******@TK2MSFTN GP10.phx.gbl...
Hi Patrick
This is the snippet from the default.aspx page in the subdirectory:
Private Sub GetDetails(ByVa l id As String) Dim sb as New StringBuilder() sb.Append(Confi gurationSetting s.AppSettings(" ItemLookup") & "&SubscriptionI d=" & ConfigurationSe ttings.AppSetti ngs("SubID") & "&Version=" & ConfigurationSe ttings.AppSetti ngs("Version") & "&Operation=Ite mLookup&ItemId= " & id & "&ResponseGroup =Large") Dim tr As XmlTextReader = New XmlTextReader(s b.ToString) Dim xDoc As XPathDocument = New XPathDocument(t r) Dim htw As HtmlTextWriter = New HtmlTextWriter( Response.Output ) Dim trans as XslTranform = new XslTransform() trans.Load(Serv er.MapPath(Conf igurationSettin gs.AppSettings( "Myfile")) trans.Transform (xDoc, Nothing, htw) End Sub
This procedure is called during the Page_Load event. All I'm doing is attempting to transform the xml that I receive from a third party (I actually get data so that is not an issue). Remember that the xslt file is used by the default.aspx page in the root directory and the default.as px page in the subdirectory.
HTH, Roshawn
Patrick.O.Ig e wrote:
Can you post some small snippet what you are trying to do. Patrick
"Roshawn Dawson" <ud****@bellsou th.net> wrote in message news:uK**** **********@TK2M SFTNGP09.phx.gb l...
>Hi Peter and thanks for responding. > >I'm using relative urls. The browser doesn't have any trouble getting >it.
To give you a better
>picture of what I'm dealing with, here's what I have: > >1.) the root directory contains a default.aspx page, css file, and an >xslt
file that thats used by
>the default.aspx page and a page in the subdirectory > >2.) a subdirectory named "Foo" that contains a default.aspx page. > >The xslt file creates the html output I want. Inside the xslt file I >make
use of the css file.
>When it comes to the xslt file, ASP.NET gives me a
System.IO.F ileNotFoundExce ption. It states that
>it cannont find the xslt file in the subdirectory. I took that to mean
that the xslt file must also
>exist in the subdirectory. > >I've checked to make sure that I'm doing everything as I should but
nothing seems to work.
>Thanks anyway, >Roshawn > >Peter Rilling wrote: > > >>Is the browser having trouble getting it, or some of your server code?
How
>>are you trying to interact with it? Are you using relative or >>absolut e >>URLs? Is you are trying to do this on the server, are you accessing >>the >>correct physical folder? >> >>"Roshaw n Dawson" <ud****@bellsou th.net> wrote in message >>news:uO** ************@TK 2MSFTNGP10.phx. gbl... >> >> >> >>>Hi, >>> >>>I have an xslt file located in the root directory. It is used by an
aspx
>>>pages in both the root directory and a subdirectory. But for some
strange
>>>reason , the aspx page in the subdirectory can neither locate the xslt
file
>>>or the css file needed to get the desired results. >>> >>>What's the problem? Can anyone help me? >>> >>>Thanks , >>>Roshaw n >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: whisper |
last post by:
Medium/small site with mod_python and sqllite or mySQL running Python
2.3.3 or later on Apache 2.x.
I can do the python and CGI, but might need a _little_ hand holding for
the rest.
Will also need SSL and a certificate.
Also mailboxes for ~12 people (to start). We don't do unsolicited
mailings or expect a huge amount of mail traffic at this time.
|
by: ratedr1 |
last post by:
I am currently trying to label rings (jewelry). They make specialized
tags (shaped like a butterfly, barbell, dumbell, etc) for this purpose,
the label goes through the ring, and then the ends stick together.
What I want to do is type information on these tags rather than write
on them, the only problem that I am having is that there is NO template
tht I can find anywhere for these labels. Now I have purchased the
labels and I have them...
|
by: Chad A. Beckner |
last post by:
Hey all,
I have a ASP .NET webpage which contains several panels. When I click a
button on the first "panel" page, it postsback to the same page, and I
switch the visibility of the panels accordingly. BUT, when I click the back
button, the same panel shows up, not the "previous" panel. I need to fix
this ASAP! I have tried expiring the page, but then I seem to lose
viewstate on the previous page (panel). How can I do this, I see a...
|
by: Keith Kowalski |
last post by:
I anm opening up a text file reading the lines of the file that refer to a
tif image in that file, If the tif image does not exist I need it to send an
email stating that the file doesn't exist then skip this file and move onto
the next file (line).
If file is there then move to a sirectory.
Here is the code I have (Feel free to make corrections as needed. If
possible make changes in red)
|
by: Massimo Bonanni |
last post by:
Hi, I try to implement ASAP protocol in my web service, but I find a very
hard problem.
I define my SOAP Header:
public class Request : SoapHeader
{
| |
by: briggsie2006 |
last post by:
I need to write a program called wc.py. It promts the user to input a filename and outputs the number of lines, words, and, characters in the file. I really need help on this because I don't know what to do. email me at briggsie2006@hotmail.com asap if you can help me out.
|
by: Karthik D V |
last post by:
Hello All,
I have a table like this
ID CHARACTER
----------- ---------
1 A
2 A
3 B
4 B
|
by: fortwaynemarketplace |
last post by:
Need these two scripts;
1. (Action) script for email (outlook express or...) to come up in .swf enviroment. I have created a button (email us), need action scritps to send/recevie an email.
.
2. Submit form (Action) script to send infromation form out to my email from .swf enviroment.
You may send the information to fortwaynemarketplace@yahoo.com.
Thank you.
Regards,
|
by: Alenik1989 |
last post by:
I wrote this code, but I'm not able to test it because im getting 3 errors. So I'm not sure that this code will work properly or not!!!
the code in
#include <stdio.h>
#include <stdlib.h>
int rnd(char s1,char s2,char c);
int GetSt(char s1,char s2,char c);
void SearchAndPrint (char s1, char s2, char c, int length);
|
by: Coxmg |
last post by:
Here is the code, ACCESS 2007:
Hello, I have a dialog box that opens on a form that lets the user browse files. I simply want to limit it to Folders, how can I do that? Need ASAP. Thanks. ACCESS 2007.
Here is my code, how do I prevent it from showing files? I want Folders only.
'Declare a variable as a FileDialog object.
Dim fd As FileDialog
'Declare a variable to contain the path
'of each selected item. Even...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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...
| |