Finding Directory Level

I am using Request.ServerVariables("SCRIPT_NAME") to get the extention from the url and need to know if I am in the root or down a directory. i have two folders, one called 'local' and one called 'group'

View Replies


ADVERTISEMENT

Directory Level

I have a website that is running perfectly on windows 2000 server and IIS 5. However we are now moving it to server 2003 and IIS6. No problem there however after setting everything up a problem has occurred. My directory structure is websites then webroot within that which contains the site files. Within webroot is also a directory called connections, which contains the database connection asp file.

It is a mysql database. Ok the problem is that I am calling the connection in my asp pages as follows (<!--#include file="../Connections/connLUKTrading.asp" -->). but the server will not navigate up a directory level as the ../ indicates. The site works fine if I place the directory connections in at the same level the site works but then I will have to do this at each of wwwroot's sub directories I should not have to. I believe it is a permissions problem to do with IIS6 but not sure. I have spent hours trying to find it.

View Replies View Related

Finding Current Directory?

How can I find out the full directory path (i.e. c:path ofile) of a file? I'm logged into a server and the of course, I have an FTP directory root, but I need to know the absolute path.

View Replies View Related

Active Directory :: The Attribute Syntax Specified To The Directory Service Is Invalid

I have written a script to update user information in the Active Directory using ADSI. Here is part of it:

Set User = GetObject("LDAP://<GUID=" & GUID & ">")

User.Department = DepartmentName

User.SetInfo

Set User = Nothing

This works fine unless DepartmentName is an empty string ("").

Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber
.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?

View Replies View Related

Invalid At The Top Level

It has been said that When attempting to load an XML file saved as UTF-7 (a transfer encoding format for Unicode), the XML parser in Internet Explorer generates the following error message: Invalid at the top level of the document. The same error also occurs when using the MSXML parser from server-side or client-side script.
I am getting this error when I use MSXML 3.0 as reference in a VB DLL function called by a ASP file.

View Replies View Related

Application Level Arrays In ASP

In our application, we have noticed on two rare occasion where the
data stored in application level arrays has disappeared. We have 3
application level arrays, and many other data types stored at
application scope as well. The other data types appear to have been
unharmed.

All session level data remained unharmed as well. The data
in the arrays seemed to have disappeared all of the sudden. No IIS
restarts, for example, were performed. Is there any known issues with
arrays being stored at application level.

View Replies View Related

View File Level

On our IIS 5 windows 2000 web server we have many .asp's.most of which (When right clicked / security tab / edit authentication) are
using Integrated Windows Authentication.
Is there an easy way to check ALL of them? Some of the pages require a
higher level of security (Our password reset page for example) and I am just
auditing everything and want to make sure that only the few pages that
require it are using the elevated security level. (By the way this is
accomplished by using anonymous access with a domain account that is
'elevated'...
I hate right clicking on 1000 different .asps to see the file / directory
level authentication methods... is there an easy way to do this? Maybe
through resource kit command line tools or some meta edit type tool

View Replies View Related

XML Document Must Have A Top Level Element.

I am creating a simple XML file via asp and want the XML to appear in the browser. Here is what I have tried: Code:

View Replies View Related

Graph? Different Level Of Access?

I have to create a web base application program, I think to use ASP but I would like to see If it supports comparison Graph. Does it support different levels of access because I have different kind of users or i have to do it manual?

View Replies View Related

File Level Secuirty

I have made sufficent pages for our site and same have been in use in our LAN since long.

Now my company has asked me to put the same on web and we are buying a domain for the same.

However I am worried for a file level security. When the output comes in asp from cod below: Code:

Response.Write("<td><a href=Documents" & adorst("ProjectNo") & "/" & adorst("Client Drg No") & ".pdf target=NEW>" & adorst("Client Drg No") & "</a></td>")

We can simply open a file from our server's folder. Even if someone knows the full path, he can simply open file. Even someone expert can delete pdf file also.

View Replies View Related

Multi Level Menu

how I can make a dhtml menu into a dynamic menu that pulls its links from an access database instead of the hardcoded html.

I would like to know because I'm working on a site that needs such a menu and most of my administrators using my site don't understand html and won't be able to update the menu unless I can give them a simple form that allows them to add links.

View Replies View Related

Multi Level Arrays

How do I create an array inside an array? This certainly doesnt work...

Dim TmpArray(0 to 10)(0 to 50)

View Replies View Related

User-level Security

I want to open the MS Access file with user-level Security. I know that if I do NOT setup user-level Security in the MS Access file, and create the table for login in the MS Access file (Put the MS Access file in the server), then it works.

I did that. But, I want to know whether or not we can use ASP code to open the MS Access (MS Access user-level Security setting). This way I can put the MS Access file in the public place.

Can we do it in ASP?

The following code cannot do that:
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/try.mdb"
%>

View Replies View Related

Session Level Timer

give me a session level timer code? I'm trying to time a quiz.

View Replies View Related

Set Readonly Value Based On Access Level

I need to know how to disable a button based on the username that logs onto the web application.

View Replies View Related

If User Level Than Show Menu

I tried to make our menu differend for Users for example :

If user level = 2 than
show Menu (Add Contact)

I used this code:

View Replies View Related

Different Messages Displayed Depending On Stock Level

I want to display a different message deppending on the amount of stock left. For example if there is no stock i would like to display "out of stock", if the item is in stock display "in stock". Code:

View Replies View Related

How To Use Database To Check User Permission Level

i'm going to ask the way to use database to check user permission level in asp..

View Replies View Related

How To Restrict Access Level To Specific Web Page Using ASP

how can i retrict user to only access the web page iif and only if they have the username and password, they neeed to login before can access the certain pages. How is the coding for that web pages?

View Replies View Related

Finding Age

I have a database with date of births stored dd/mm/yyyy (english dating
system) and =date() returns a date in the same format in my server.
how do i find the persons age using these two pieces of date.

View Replies View Related

Finding Word

i want to make a program to find out and highlight a particular word on the browser using ASP and javascript.

View Replies View Related

Finding A Path

Is there something similar to PHP's php_info command to tell me all about the server? I need to find the actual path where the site resides.

View Replies View Related

Finding The Webserver Name

I need to create a new application in our test server. I am using VID for
that purpose. In order to set up the project in VID, it asks me 'which server
you want to use'. However, I do not have the name of the test server. Is
there any way to configure the name of the server here? I have full rights to
the server directory and is mapped on my machine as G drive.

View Replies View Related

Here Is A Function For Finding Age

Here is a function where you don't have to worry about the leap year.

You will have to still be aware of time differences between you and
the server, and correct your data before entering it into the
function. And of course time zones, yada yada ....

BUT I think that most people using this will just want to say if today
is there bday than they are their new age. Code:

View Replies View Related

Finding Version

How can I programatically ascertain what version of ASP my ISP has installed ?

View Replies View Related

Percentages Finding Of

I need help to find percentages, because I missed out on a lot of basic math education, I need it to be real clear step by step instruction for instance how would I go about finding 24 out of 32 one step at a time?

View Replies View Related

Finding A Port

i know how to find the available server names, how can i find the ports?

View Replies View Related

Finding A Hotel

I am developing a hotel finder solution in Canada. When some one enters a Postal code, it should be able to display the hotels in 5 KM radius. (With nearer PIN numbers?) I am deleloping this application using ASP, and is there anyway I can such searches?

View Replies View Related

Finding The Space

I trying to find the memory occupied by the object in RAM, For Example:

Set ObjTest = Server.CreateObject("ADODB.RecordSet")

I need the space occupied by the ObjTest in RAM. Is it possible ?

View Replies View Related

Finding Max Value In Database

I am trying to find total number of parts in the database for a user by using the COUNT function:

max = HelpDesk.Execute("SELECT count(PartRef) AS 'maximum' FROM MISC_PartInfo WHERE Username = '" username "'")

but when i try to output the result by:

Response.Write max("maximum")

I get the error:

Item cannot be found in the collection corresponding to the requested name or ordinal./Intranet/test/PartInfo.asp, line 82

View Replies View Related

Finding Every Monday

if anyone can point me in the right direction or has code on this. i'm trying to display the number of occruances of an event during each week of a given month. basically, i'm looking for code that finds every monday of a given month.

View Replies View Related

Finding No. Of Pages

one cant do a straight division because if i have 20 per page and 22 records, that's two pages. best i've come up with so far is

Code:

iPageCount = fix(iNumRecords / iPageSize)

if( iNumRecords mod iPageSize > 0 )then
iPageCount = iPageCount + 1
end if

anyone managed it better? is there a function like fix that forces a round up?

View Replies View Related

Finding Maximum Value

How do I find the maximum value of a recordset column? I'd rather do it this way than open a new recordset with Max(column).

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved