I'm using the code found at http://support.microsoft.com/?kbid=224364 called
Creating a Directory Browsing Page Using ASP.
The code works fine. I would like to find a way NOT to show hidden files or
folders. I don't know (if it's possible) how to test for the hidden
attrobute and create an IF condition that will allow only non-hidden files
and folders to show up.
Also, can anyone suggest how to add an "up directory" link (like you might
see in Windows Explorer) to this page?
it is possible to add ASP code in the page displayed during the directory browsing.This page is returned by windows and lists all the files and directories contained in the current directory.The page that I'm talking about is something like:
Server IP address - /current directory/
[link to parent directory] day, month day, year hour size file name1 day, month day, year hour size file name2 day, month day, year hour size file name3 ...
I'm running ASP on IIS 5.1 on Windows XP, the same thing works on Windows 98 with PWS.
The function below stuck the IIS - draws only frame with nothing inside and wait for infinite. All other requests to IIS are stuck. I presume that it is some permission thing, but what? Is there some log or something that I can check? Code:
I have this page on a website in ASP which allows me to enter the Emp#. When I enter the Emp# I get all the data relevant to that Emp# like Name, Age, Address, etc
The present url doesnt change even after getting the results ( so I guess I cant pass the variable to the url) Is there any way to get all the records for employees with Emp# 1 to Emp# 2000
I've get a problem in browsing .aspx pages locally. I'm using Windows 2000 Advanced Server with IIS enabled and .NET framework SDK installed, as well as Visual Studio.NET. But when I browse .aspx pages locally, I.E. shows "Server Application Unavailable" message. In the Event log, I find error event of ASP.NET 1.0.3705.0 with the description :
aspnet_wp.exe could not be launched because the username and/or password supplied in the processModel section of the config file are invalid.
i have an intranet page that i'm using to query a database for information on which design jobs relate to which images and their locations on the network drive.i want to include the ability to copy the files from the network drive to a cd, which i think i can do with the file system object,but i'm puzzled on an easy way for the user to pick the destination to the cd drive easily.
i know i can have them hardcode the information into a textbox, but i would like a more friendly way of doing it. in visual basic you can get file folder to popup and you can browse the directories on the local harddrive.does anyone know of a similiar way to do that in asp?
I've got an 'include' file that is referenced in a .asp file. The include file (users.inc) needs read a .txt file (data.txt) located on another server (within the same domain). At this point, I'm not able to read that file from within the users.inc file in order to take action within the .asp file.
I've got an 'include' file that is referenced in a .asp file. The include file (users.inc) needs read a .txt file (data.txt) located on another server (within the same domain). At this point, I'm not able to read that file from within the users.inc file in order to take action within the .asp file. Code:
I have an admin page for adding pictures to a stock list, currently it browses and uploads from a local pc to the server but can you browse, say,the images folder on the webserver?
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?
I am creating a web-based application with ASP and using frames. I wonder how we could trace user's browsing behaviours in this particular domain. That is, I need to know which pages the user has viewed and which pages the user has not yet visited, as this information is essential and will be used to assess their learning paths and progress.
Therefore, my question is that how to create a file which stores information about users' browsing history, i.e. the page the user visited, so that we could use these information to assess users' learning progress, or what is the right means to tackle this requirements?
im brand new to ASP and all but at school they want a webpage and they wont support PHP which is what i know so i need to figure out how to show everything under a directory then if sub folders have them link to that folder
I would like to do something like this: <!--#include file="C:dbutilsdbConfig.asp"-->
Where the directory C:dbutils is OUTSIDE of the web directory and not accessible by a client web browser. The reason I would like to do this is in case somehow ASP processing gets turned off in IIS. Since "dbConfig.asp" contains a username/password for the database, I don't want this file to somehow get sent back to a client browser as plain text. Two questions: 1) is it possible to use an include file that is outside of the web directory? 2) is there even any way that ASP processing can be turned off? perhaps not explicitly, but maybe via malicious code or virus?
Does anyone know if it's possible to convert files to .pdf format through ASP? or better yet, does anyone know of a utility that can take a directory of word documents and form one pdf file with the contents?
I have an Intranet site sitting on an Windows XP server, which has IIS 6.0 installed. This Intranet site contains a virtual directory (VD), which sits on a second server and has Windows 2000 installed.
To test how a virtual directory would work for this particular Intranet site, I had previously set up the VD on the web server. Everything worked well...no errors.
Once testing was complete and the location of the VD changed to the second server, I have been receiving the following error:
Microsoft VBScript runtime error '800a004c' Path not found
I understand what this error is saying, but I was wondering if anyone knows of any problems between IIS 6 being on a XP server and the VD on a 2000 server and any possible implications.
Is it possible to read the all filenames from a directory? Basically I want to grab all the filenames from a directory and make a flat file with all the values in it.
I'm trying to create my own browsing window for a directory on my webserver. I can access the root the directory and the first sub-directory but anything lower than that I get "path not found". I'm almost sure the problem is attaching the selected directories names on to the objFSO.GetFolder line.
I used the Mid function to get my selected directories. I can't figure out how to add the selected directories to the objFSO.GetFolder line. Code:
I'm trying to connect to the active directory using asp. I'm having problems with logging in, what happens is the username accepted is not the user logon name but the displayname is accpeted heres the code:
Could anyone show me a sample, snippet, code chunk ... etc of how I can get ASP to find the Active Directory username based on a supplied email address?
For example: I want ASP to query active directory and retrieve the AD username for where user email address = 'whatever@whatever.com'
Here's the challenge though: How do you get your dynamic pages to appear as a directory rather than an asp page with a querystring? I'm fairly certain that there is a workaround to this to be able to have one dynamic asp script that appears in your address bar as a directory.
Is there a way in asp to create a new default web site within IIS I am setting a content managament system and want to create a new default web site during on of the processes. So for example if people create a new site within the admin section and call it Jacinto this will create a new virtual directory called Jacinto.
This would then be accessed at http://localhost/jacinto
I haven't had a close look at the code yet but it's not in asp/vbscript
Has anybody done it in pure asp.I would like to do it on a site hosted by a third party and I am unable to install any dll's or exe's on the machine because it is a shared webserver.Both .NET and Non .NET would be good
I have a virtual directory set up and it's fine. Now what I want to do is write files into them. When I try to do that it gives me a "path not found" error.How can I do this? Is this even possible?
Is there a way to create directories using vb or jscript in IIS to a unix machine? I want to have the aility to upload files through my Win2k Web Server, and have those files stored on my Mac OS X Server under new directories based on date and Upload ID's from the Db.
I would like to have PHP for windows run in another directory than c:inetpubwwwroot. I have tride changeing parameters in php.ini in my c:php directory. But nothing changes. When I run the phpinfo() I always get Configuration File (php.ini) Path as c:windows. But I do not have the php.ini file there. Is there something I am doing wrong or is it a bug.
I tried renameing the php.ini file and reseting the IIS and believe it or not my scripts still work in c:inetpubwwwroot.
Is it possible to keep my database file (access db) in local pc (C drive)? I have created all the page with asp, the reason is that I cannot set the server path to write on the database if it's save under server.
I am only running all this file in one pc. how can I change below statement if I want the db file save in the local c:...Tks