I have a rather large classic ASP application that uses relative references like
...commonconnection.asp
all over the place in about 60 pages. The application works OK on my XP Pro machine but does not work on a Windows 2003 Server. Is there a way to set the server to accept the reference to the Parent folder? Does it have something to do with IIS lockdown? Or IIS Version 5 instead of 6?
on my hosting acount I have 3 folders that were set up by default: DB LOGS WWW now I understand what each if for obviously, but can i reference back to the databases location outside the www folder from a file using ..../DB/database_name.mdb ? {asssuming of course the file I am referenceing from is in the main WWW folder)
I have an email application that builds an email body; I got it from IE's online tutorial with the whole "toolbar.htc" thing. Basically my email body is held in a DIV tag, nicely name "oDiv", and then passed to another page for processing.
I send the email using CDONTS.NewMail object. Basically it's a long email and I need a way to hyperlink to the next section. The problem is when I recieve the email, all the relative links are now absolute links. I've tried playing with ContentBase, but nothing is working. Any suggestions?
i have a form that pops up based on a click. the popup opens up correctly. now what i want it to do is this.
1. submit the data to an asp page. that part i got working 2. close the popup box. have that working as well. 3. after processing the data on the asp page, direct to and refresh the parent page that the popup was created from.
to be more specific....
i have a bracket page, where you click on the winners name to move them over. works fine. that sends variables to a pop up box, where you enter a score. that works fine. now when i submit, it only sneds the data to the asp page, and even though the bottom of the asp page redirects it to the parent page, it doesn't. it seems like it is trying to redirect to the popup that doesn't exist anymore, so it does nothing.
Our web application is currently using relative paths in various places throughout our code. im working on eliminating this, but not sure of the best way to go about it. i want to avoid hardcoding the path to make migration easier and more manageable. i thought there is a way to user the request object?? request.servervariables or something -
I'm using a segement of code in my global.asa to open a db connection check a users ip address against those i have in a recordset and then take the appriopriate action, very handy for banning bad bots who ignore my robots.txt and users who abuse my system.
I am loading a vbscript source file on the client. Here's the code: <script language="VBSCRIPT" src="../vs/systableEdit.vs"> </script>
This code worked on IIS 5.0, Windows 2000 but doesn't work on IIS 6.0, Windows 2003. This is client-side vbscript. I have the parent paths enabled but that only applies to server-side include files, I think. Anyone know why the src does not load and what I should do to fix?
I got a problem when I uploaded a file with the input tag of type file "<input type=file.." using the FileSystemObject where The page not opens and there is no any respond, but I tried to see if the folder that is already exists xan I see by that object I discovered that it is not exist.
The main problem I put my files in a folder that I dont know its absolute path , just a relative that always not exist.
ive got a bit of code to check if a file exists and it works if I use the full path ie "C:Inetpubwwwrootfile.txt" can someone advise me how to get it so I can use the relative path ie "file.txt" where the file and the code are in the same directory? Code:
I want to build a website with a members only section using ASP and an access database, can anyone tell me a website or recommend a book to help me do this?
Where I can find an ASP reference (objects, methods and properties) like the one that PHP offers in his site?(downloadable and .chm format preferable) Please don't tell me microsoft.com, be more detailed please because I've been searching for on microsoft.com ...but nothing found.
I'm writing a custom COM object used by certain pages on a site. During development, I need to replace this dll periodically, but have found that is in use and can't be replaced. This is true even after all browsers have been closed, and sufficient time allowed for a session to expire. The only thing I have found that works is to restart IIS thru the IIS mgmt console.
The object is used like this:
var vObject = Server.CreateObject('MyObject'); //do something with it vObject = null;
Is there another way to replace this dll short of taking the entire site down?
I'm trying to convert some ASP pages to PHP, but I don't know ASP very well (as in: at all ), and there are calls ASP is making whose purpose and function is unknown to me. I tried looking for a reference on the web where I can search any function name and get a reference to what it does, but I have been unable to find it.
Is it somewhere really obvious and I just missed it like an idiot? Is there such a site out there at all? I need to translate ASP to PHP and as such need to read it, not write it, so a index/reference sort of site would be better than a learning ASP sort of site.
As my site and folder structure are becoming larger and larger - I am not quite sure how to reference files in a very different part of the folder structure. Is there certain syntax I should be adhearing to?
I see a lot of " ./ " stuff - but I am not quite sure what it means. Is there any other sort of things like ./ ? If you have any advice or have a link that explains this.
the equivalent of fopen(PHP) in ASP and if so where can I read more about it? Also does anyone know a good reference for ASp where you can read about functions and so on?
for j = 1 to totalManagers2 Response.Write("# in J loop:" & j & "<br/>") If Request.Form("j") = "on" Then myToField = myToField + recipiant(j) Response.Write("recipiant's email is :" & recipiant(j) & "<br/>") validRecipiant = true End if next
My problem lies with line ' "If Request.Form("j") = "on" Then '...
Now on the first page, I have a form, which I dynamically populate a table, and for each row, I output an HTML checkbox. I assign the name of that check box to a # that is incremented within the for-loop that is outputting all the HTML table rows.
So I have check boxes with name attributes such as "1", "2", "3", "4" and so on.
My question is, on the next page, how do I tell if those check boxes are checked? I use the Request.Form("1"), Request.Form("2"), Request.Form("3"), Request.Form("4") and so on.
But as you can see, in my For-Loop, I'm just checking this... Request.Form(1), Request.Form(2)...and so on ....
So I am ignoring the quotation marks...how can I include them so the code knows to look at the form for the name attribute of "1" and not just 1?
I�m getting the error with the code below [ line 179 is just after the �then�]. The code is supposed to complete an�a href to an image if it exists. Code:
is there an sql command that allows me to select all rows where a specific field isn't called by other rows? To be more specific: I have this table for my categories. I want to be able to choose all the categories that don't have subcategories. The fields are
CaName CaId CaParent
So a category has a parent, so caParent = the CaId of it's parent. So is there a way to call all the categories that don't have children categories in my sql?
<script language="JavaScript" type="text/JavaScript"> Dim UN Set objNet = CreateObject("WScript.NetWork") Set objUser = GetObject("WinNT://my domain/" & objNet.UserName ) UN = objNet.UserName & " (" & objUser.FullName & ")" </script>
How can I reference the VBScript Variable UN in my ASP code? <%=UN%> won't work because VBScript is on the client side and ASP is on the server side. If I have to post it on one page and read it on another, how do I do that?
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?
My web host has stated that If I want users to be able to write to my database. I need to store it outside my site folder. So I have a site folder called www and a folder next to it named database. If I insert my database into that folder how would I reference it in my html?
How do you say in HTML "leave the www folder and find the database folder?"
I have a database of UK postcodes with corresponding OS Grid references (easting and northing) but I need to convert these to longitude and latitude so that I can plot my postcodes on a Google Map.Does anyone know of a function which can do this?