Vitual Include Not Working -- On Only One Page!
On the rest of the site, virtual includes work, but on one particular page, non-virtual includes work, but virtual ones do not... even though the include statements are copy and pasted from working pages, or are part of non-virtual includes that are included.*
I assume there is something in the page's code that is prohibiting virtual includes? Code:
View Replies
ADVERTISEMENT
I created an asp page that writes to cookies and copied it to a japanese virtual folder.
The cookie writing code is below.
first.asp
var sUserId = new String();
var sPassword = new String();
var cCookieExpiryDate = "December 31, 2010";
sUserId = "manjunatha";
sPassword = "password";
Response.Cookies("ERMSUserId") = sUserId;
Response.Cookies("ERMSPassword") = sPassword;
Response.Cookies("ERMSUserId").Expires = cCookieExpiryDate;
Response.Cookies("ERMSPassword").Expires = cCookieExpiryDate;
Created another page in the same virtual folder which displays the values of the cookies.
The cookie reading code is below
second.asp
Response.Write("User Id : " + Request.Cookies("ERMSUserId"));
Response.Write("Password : " + Request.Cookies("ERMSPassword"));
I executed the first.asp and later executed second.asp. The second.asp didn't display the cookie values i have written in first.asp.
I gave an English name to the virtual folder and repeated the same process again. This time it displayed cookie values.
View Replies
View Related
why would an iclude file work on my laptop but not on the server?
View Replies
View Related
I've put this in global.asa:
<!-- METADATA
TYPE="typelib"
FILE="E:Program FilesCommon FilesSystemadomsado27.tlb"
-->
But I'm still getting "Variable is undefined: 'adCmdStoredProc' "
I've also tried using the UUID with a similar result.
Where can I start looking to troubleshoot this?
View Replies
View Related
I've code in html body tag.
objConn.Open strCOnnect
The strConnect variable holds the connection string which is in an include file. But this code doesn't work in functions. How can I fix it? Where should I include the file?
View Replies
View Related
i placed the <!--#include virtual=... tag outside the <% ASP tags, and when trying to import the file from the same directory db.asp, i get the following error:
The include file 'include/db.asp' was not found.
/eu_softing/sesso.asp, line 1
Does anybody know what is wrong?
View Replies
View Related
The page code can be viewed at http://www.onthescene.co.uk/loginpagecode.htm
the error messages on both firefox and IE6 don't tell me anything other than its an 'internal server error'. Ive spoke to my web host and they say they can't help as they dont give programming support.
View Replies
View Related
I currently have designed a web page and inserted some ASP modules into it. But, if I insert more than one ASP module I receive an "Internal Server Error". If I delete the second ASP module the page works perfectly. So, my questions is this. Can you only insert one ASP module per web page? Where is the problem. Code:
View Replies
View Related
Anyone have any thoughts regarding the output document?
View Replies
View Related
PHP script is in script.php
Now, there's a page.asp
How can it be possible to include the script.php into page.asp (and make it work) without changing any extensions of files? SSI is supported, but i don't know how to use it.
View Replies
View Related
im trying to make a string and in that string have an include in to include a .asp page is this possible. Code:
myhtml = ""
myhtml = myhtml & "This Should Work "
myhtml = myhtml & " <!--#include file ="TESTR.asp"--> "
View Replies
View Related
I have different database connections that I use for DEV and PROD versions of our web app. I want to put the database connection string in one location so I only have to change it once when we push live.
So I put it in an include file and reference it in all my asp pages as:
<!--#include file="includes/db_conn.inc"-->
But this will not work with the global.asa page. How can I reference an include page from global.asa?
View Replies
View Related
I have designed asp pages where all pages have common header and footer. I have added Images to the footer page called as footer.asp.
now i have the footer.asp in another folder
and i call that footer.asp within my index.asp page as a include page.
but the images in the footer.asp are not displaying in the index.asp.
what could be the problem?
View Replies
View Related
i have many *.html* pages with the same header. i wanted to make one *header* file and put a link to that file in all html pages. So if i ever need to make changes in the header, i will need to edit only 1 file rather than all pages.
for *.asp* pages this code works fine:-
<!-- #include file="filename.inc" -->
but the same **include** does not work for *.html* pages. i guess there is some other way to put a link!
View Replies
View Related
I'm make a site that will contain an include statement that updates and gets data from the DB, but the text after the include doesn't display. When I don't have the include statement, the page displays perfectly.
Here's my statement:
<!-- #include file ="getData.asp" -->
Please let me know why it's not letting me display anything after my include statement, and what I can do to fix that.
View Replies
View Related
I have a asp project. One of the module, i wish to develop in .net, can i include it into my asp project?
View Replies
View Related
I am using:
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition",
"attachment;filename=Letter.doc"
to download my asp page to the client. The download process works great but when I open the .doc file it is missing the image included within the html <img> tag of the .asp page. How do I get the image to come down with the text?
View Replies
View Related
Basically, we are working on a website where we want people to be able to see about 10minutes of our live streaming webcams on a once off basis. We are working on IP address sessions to do this, my question is however we want to have a single page with a countdown timer and the streaming video.
Now the timer is located on a local server but the streaming video is coming from a remote location, can we include use the remote asp page inside our local page. So far we keep getting the remote url displayed but not the media player.
View Replies
View Related
I am running IIS 6.0 on Windows 2003.
I would like to be able to run a perl script from a web page and
include the output.
I have tried doing it with an ssi:
<form action='docsearch.shtml' method='get'>
<!--#exec cgi="/cgi-bin/docsearch.pl-->
</form>
This correctly ran the script, but it was unable to include the
QUERY_STRING from the parent URL into the included perl script, and
there seems no work around to enable me to do that on IIS 6.0,
therefore on this thread:
http://groups.google.com/group/micr...6ae0d85395a3d72
I was recommended: "to a simple ASP page which will easily do exactly
what you want because it actually has the functionality you want, by
intention, and is supported." Code:
View Replies
View Related
I'm building a site which runs on 4 templates, each a different colour. I would like to pull in different content into each template using ASP.NET, similar to the php version of index.php?page=content.
I've not programmed in ASP before so am hoping someone can either supply me with a script or point me in the right direction.
View Replies
View Related
I want to be to call my menu from another file onto my page so that i dont have to add it to every page of my website. The problem is when i try to add it using the include method it says that only one include file is allowed on an ASP. The other include file is my connection string so i cant really take that out of the page because then nothing else will work!
How can i get the menu page included as well as the connecting string?
Have added the code below, i have highlighted the 2 include files that i want to use in blue, i have also left the div tag in for where i currently have the menu which is what i want to take out and have ther include file there instead, if that makes sense. Basically the bit in red i want to be able to remove from all of my pages and add the blue file above the red code in instead, but i dont know how!!!!! Code:
View Replies
View Related
I just installed PWS on 2 machines (XP & 98).
The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.
View Replies
View Related
After I moved the site to new server the mailing method stoped working , the cdo pull the email from sql database on the same server .. although it says sent to # recipients.
I send a webpage (newsletter) exisit on the server "I use full url" also the registration page gives when registration the error: CDO.Message.1 error '80040218'
Unknown Error
/extra/news/reg3.asp, line 251
line 251 is objSendMail.CreateMHTMLBody "http://www.example.com/newsletter.html"
I saw description of the error it sayes that I have to use full url ...but I am using it ...
any Idea ...
View Replies
View Related
I have a sever 2003 machine of which I am trying to host a webisite on. The webpages I uploaded has lots of .asp files that could not be open. I'd contact the website disgner and complains about it and an he blaims it on my server not supporting asp technology.
My question today, is there a way to test what the problem really is?
View Replies
View Related
In my serverside script I have gone down to the bare bones and the following doesn't seem to work:
dim fs
dim fst
dim LineOut
set fs = Server.CreateObject"Scripting.FileSystemObject")
set fst = fs.CreateTextFile("C:TEMPhome.tmp",True)
lineout = "MAFFIdentifier" & vbtab & "Title" & vbtab & "Initials"
fst.writeline(lineout)
lineout = " ==================================================
========"
fst.writeline(LineOut)
fst.close
set fs = nothing
The server gets to the end since I place a response.write in to test.
If I cut and past this into VB declare the variables as objects and lineout as string and remove the "Server." from the line when setting fs, then it works fine in VB.
View Replies
View Related
The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.If I do that, all I see are the contents of the asp file.
View Replies
View Related
Just set up Dedicated Server Hosting with GoDaddy. I put a very simple ASP page in the home web directory and try to load it and get a very generic error. A simple HTML file works fine. Obviously it's a permissions issue or maybe some service is not running.
View Replies
View Related
i got an sql sentence that is executed in toad without problem; returns 1 but when i run the sql in asp i get returned 0. Code:
SELECT COUNT(*) as st
FROM sest_sklepi
WHERE rok<(SELECT TO_CHAR(SYSDATE, 'DD.MM.YYYY') as b FROM dual)
View Replies
View Related
New to IIS, Why will IIS 5.0 not server up my ASP web pages? I cannot even get to the help because it is an ASP Page. I get an error in IE that states "HTTP 500 Internal server error". I have looked in the configuration and cannot find anything related to ASP. What can I do to serve up ASP web pages?
View Replies
View Related
I'm having difficulties making PWS work. I have WIN98SE. It was working for a while but now it says:
Quote: Problem:
An unexpected error occured.
Solution:
Please restart the Publishing Wizard.
View Replies
View Related
Im finishing up a content management system for a client. It works fine except the way they have the pages set its nessessary for someone to open each page made and change it to the new directory.
the script copys a folder from lets say
http://fake/templets
To
http://fake/user
so now we end up with something like
http://fake/user/smith
On the pages in smith is there a way to make the look at their url and strip off all but the /smith part?
Or maby someone could tell me what im trying to do is called and ill be able to do a better search online.
View Replies
View Related
Here are the scripts. interest is 0, but, it will not execute then clause. Why?
interest = round(rs("CURR_WORKING_INTEREST"))
response.write interest
if sizeworkint < 3 OR interest<>0 then CURR_WORKING_INTEREST2 =
left(rs("CURR_WORKING_INTEREST"),2) + ".000000" end if ..
View Replies
View Related
I just noticed my upload function isn't working since I have move the folders and files to different directory.
Now I get this error:
Error Type:
Persits.Upload.1 (0x800A003D)
Wrong Content-Type. Make sure you have included the attribute ENCTYPE="multipart/form-data" in your form.
/foldername/UploadScript.asp, line 54
line 54 is:
Upload.Save "z:
ewfolder"
I have given modify, read & write permission for IUSR_MachineName account on NewFolder and given Read & Write permissions in IIS.
I also included ENCTYPE="multipart/form-data" attribute in my upload form.
View Replies
View Related