Creating Dynamic Named Folders

Basically, I would like to create a folder on my server for each user that comes to my site based on their last name which they enter. The code I have below is incomplete as I don't know how to incorporate the lastname into the CreateFolder method.

dim lastname, objFSO
lastname = Request.Form("lastname")
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
folder = Server.mapPath("/test/")
objFSO.CreateFolder(folder)
Set objFSO = Nothing

View Replies


ADVERTISEMENT

Creating New Folders

I've looked everywhere and can't seem to figure out how to create folders. I've got a tonne of other stuff sussed and am about to attempt creating text files, but folders elude me still.

View Replies View Related

Creating A Dynamic Anchor

I have a web page that accesses a database to pull news stories down and create a link to another page that is populated with the news stories. These stories take up enough space that the page has to scroll. I want to be able to have the links it generate go directly to an anchor on the second page where the news story begins.

Can someone point me in the right direction to a place where I can get more information about this?

View Replies View Related

Creating Dynamic Array

I wrote a simple code to generate a dynamic array:

Dim TestArray2()
TestArray2=array()
Redim TestArray2(43)

When I uploaded this to IIS (on Vista Basic), the following error
message was given:

"An error occurred on the server when processing the URL. Please
contact the system administrator"

May I know what is the problem?

View Replies View Related

Creating A Dynamic Variable

a way to view the contents of a variable. But That variable could be one of several variables. So, I would like to pass in the name of the variable as a string into a function, and pull out the contents of that variable.

View Replies View Related

Creating Dynamic Playlists

I am trying to write a script that will insert a commercial (randomly choosing from 3 commercials) prior to a news video clip. I need to have the page dynamically created using asp (or at least I think I do).

I have tried several different methods but nothing works. The only thing that has been successful so far is a static .asx file (but that won't cut it). there is very little documentation on this from what I can find.

View Replies View Related

ASP: Creating Dynamic Form Elements

I asked a question earlier about creating dynamic pages.

I want to know if its possible to create dynamic form elements based on a condition equating to true.

e.g. as you could have dynamic texts when a condition is true.

Could i have dynamic form elements when a condition is true
e.g. response.write(create radio button)
or create combo box etc

or how is it done ?

View Replies View Related

Creating Semi-dynamic Pages

What I am trying to do would be useful to many sites that have product listings or archieved articles.

Instead of having server load and spider unfriendly dynamic asp pages, create semi-dynamic html pages by running an asp script which requests an asp page from a Local IIS server (or www server if need be) and writing the html text to a file and saving it as a filename.htm page. Code:

View Replies View Related

Creating Dynamic Variable Names In A Loop

I'm having a brain fart at the moment. Can someone tell me how to dynamically create variable names based on a loop counter?

for i = 1 to Num_Cart_Items
Item_Name & i = Request.Form("item_name" & i)
Item_Number & i = Request.Form("item_number" & i)
next
Desired result:

Item_Name1 = Test Product
Item_Number1 = 1234
Item_Name2 = Test Product 2
Item_Number2 = 2345

The problem is with the Item_Name & i..I used to know how to do this, but I can't remember or find any code that I did this with.

View Replies View Related

Creating Dynamic Tables In Dreamweaver To Display Tables

I know how to create dynamic tables in dreamweaver to display fields and records in a table of a database, but in my case I need to create a dynamic table that lists all the tables in the database, then to click on the one i want 2 edit the data in there.

View Replies View Related

Named CDO Constants

I've been searching for a complete listing of the CDO constants, but have
come up empty. Where can I find a listing of all the CDO named constants
that can be referenced directly with the CDO metadata typelib, i.e.,

<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->

View Replies View Related

Named Anchors

Can you use named anchors in ASP links?

I am using an <IFRAME> on one of my pages and want to jump to one part of the page that is loaded, but I'm also passing querystring variables in the link. It doesn't seem to recognise the #now anchor that I want to jump to.

View Replies View Related

Named Array Not Numbered

Can I name my array index rather than number?I am reading a RS into an array and rather than reference the fields in each elements using a number, i would lke to use the column headers from the table:

myArray(13,6)

would become

my array(name,6).

The reason is that i am worried about a query being added to in the table and throwing the column numbers out.

View Replies View Related

Jump To Named Anchor

Let's say I have a form like this:

<form action="handler.asp"> ... </form>

Within handler.asp, I output a number of named anchors:

<a name="important1">Important 1</a> ...
<a name="important2">Important 2</a> ...
<a name="important3">Important 3</a> ...

In my form processing code, I want the returned page to jump to one of these anchors depending on the result of the processing.

How can I do this?I don't want to use a redirection because then I would have to
re-process the same page.

View Replies View Related

Passing Variables Via Url With Named Anchors

I am trying to passing some variables via the url and also a named anchor appended to the end. unfortunetely the named anchor is been read in as part of the last variable.

threads.asp?t=96&f=15&j=y#288

I use request.queryString("j") to retrieve the value but the value returned is y#288 and no y as expected.

Is there anyway to fix this problem.

I can't pass the value via a form.

here is the code I use to create the url

Code:

View Replies View Related

Response.redirect And Named Anchors

All of these fail :
response.redirect("page.asp?Param=Param#Anchor")
response.redirect("page.asp#Anchor?Param=Param")

This one works fine :
location.href = "page.asp?Param=Param#Anchor"

I have a solution i dont like :
i can replace #Anchor by &Anchor=Anchor

Does someone has an other idea ?

View Replies View Related

Dynamically Generated Named Ranges

I know it's possible to extract data from a named range on an excel sheet. What I want to know is can I dynamically generate a named range with X columns and Y rows with VBScript.

View Replies View Related

Named Anchors Not Working In IE.... Fine In Firefox/...?

I have developed an extranet system, that is not recognizing any named anchors in IE. The top drop down on the page should be jumping the user to each section. It works beautifully in Firefox, but not in IE. Has anyone encountered this before? Any insights?

View Replies View Related

Search Result To Custom Named Page

Here is what I am trying to accomplish.

Language: .asp vbscript

Building a searchable real estate property database (MS Access)

Search page submits form variables to result page.

Works great but I have seen other web sites where the results page is a custom named page. for example.

If you search for homes with the following criteria.

Criteria: Buford, GA 30519

Your results page is named something like the following.

MLS-Buford-GA-30519-10-Distancea-0.aspx

Is this only doable in .aspx or can I accomplish this task in .asp?

View Replies View Related

Unable To Find An Entry Point Named EnumerateSecurityPackagesW In

I am trying to solve the following exception. The exception occurs when my
ASP.NET code behind code attemtps to access a remore site using SSL. Please
note that all certificates are valid and the remote site is trusted. Also, my
web site uses a custom HTTPModule implemented in a DLL named Security.dll.

Unable to find an entry point named EnumerateSecurityPackagesW in DLL
security.dll.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.EntryPointNotFoundException: Unable to find an
entry point named EnumerateSecurityPackagesW in DLL security.dll.

View Replies View Related

Processing Forms With Dynamically Named Input Items

I am unsure how to process the results of a form where the name of the <input> is generated dynamically i.e.

<input name="X<%=counter%>">

or similar.

How is each input then referred to in the page the form is posted to? I can't see any way to dynamically create variable names in ASP?

View Replies View Related

SSL Folders

I have a domain www.company.com and also a sub domain like
forum.company.com I have learned that the sub domain is actually a
folder under my main domain so if I typed www.company.com/forum - it
would go to the same file as if I typed the sub domain, unfortunatly
all the files in the subdomain point to root paths eg:
/Images/logo.gif

This isn't a problem as the subdomain is seperate and I treat it like
its a new website.

I was wondering before I spend more money and activate a 10mb SSL
folder - how would I actually code for this folder?

Is the SSL on a seperate server, or just a folder off the main domain
name?

I want to do a register system "username" etc & some personnal details
through a sercure line.

Can anyone point me to where I can get more info?

View Replies View Related

Translating Folders

My web site is entirely based on XML/XSL. Transformation of XML into HTML is a
server-side process. All my URLs are like this:
http://host/Application/?Document=AnyDoc&Chapter=3. There is only one script,
default.asp, in the root web that processes requests and displays HTML content
based on the query string.I'd like to intercept calls to http://host/Application/Catalog and translate into http://host/Application/?Document=Catalog before it is passed to the custom
error 404 handler. Can it be done - do I need a HTML filter or something?

View Replies View Related

Hyperlink Sub Folders

I am writing an intranet and want to be able to hyperlink to all files
within a specific folder AND it's subfolders. Whilst I can hyperlink to the
files in the specified folder AND I can also iterate through the subfolders
and list them, for some reason I cannot hyperlink to the sub folders. I am
writing this software at home using a computer that has IIS and Windows 98
and am accessing this as my server from another computer on my network.

My Home Page on the Server is http://maxitek (the name of my Windows98
Computer) and when I look at the value of the variable "PathSpec" - it
becomes C:Inetpubwwwroot which when I try to create links to the sub
folder it is probably here where the problem is. The files themselves link,
but not with their full subfolder names, i.e., for a file called
"C:Inetpubwwwrootmytestmytest2mytest.txt" I am getting a link that just
looks like this Code:

View Replies View Related

Create Folders

I have written some ASP code that creates a group of folders using the FileSystemObject. It all works fine when the folders are being created on the same server becuase I have the correct permissions. The problem is that the code is going to be activated when people do something on our intranet. The guy in IT has set up the permissions for the Inetuser account so that in theory it should work.

It isn't working though. The first place it falls over is when I check to see if a folder exists on this other server, it doesn't find it. I am trying to access it using the full path i.e.

If fso.FolderExists(//servername/folder1/folder2)) then...

That doesn't seem to work though because it doesn't find it when it definitely exists. Does anyone know how I should be doing this?

View Replies View Related

View Folders

I expect this has been covered before but I can't anything to reflect this. How (with code) can you view folders within a directory from within a drop down menu?

View Replies View Related

Searching In Folders?

How can I use these search scripts to search in folders ? Now the search is only going through the folder where the script itself is. Code:

View Replies View Related

Browsing Folders

How to adjust is so, that when an Word or xls link is clicked, that file will open in the right appl (Word or Excell) Code:

View Replies View Related

Browse For Folders

This HTML will give you a browse button that allows you to select a file on your hard drive:

***********************************************
<INPUT TYPE="File" NAME="FileName" >
***********************************************

Is there something similar that will allow you to select a partcular directory? For example, I may want to select a folder called projects rather than a file.

When I click search in Editplus, I get a browse button that allows me to select directories. Under ODBC Data Sources in my control panel, there is a button to select directories. What programming is needed to get this type of browse capability?

View Replies View Related

Different Virtual Folders

If I have 1 Virtual Dirctory with 2 different subfolders are these 2 different folders different virtual folders? Or if I have 2 different Virtual Directories each containing a subfolder are these two subfolders 2 different virtual folders?

I'm asking because Microsoft is using the term "virtual folders" and I am not sure if they mean the former or the later.

View Replies View Related

Copy Folders And Files

I am trying to use the FileSystemObject to create a copy of a directory (including all sub-folders and files within this directory) but i just cant get me head around it.

Can anyone point me to a tutorial or some sourcecode that i can play with?

View Replies View Related

IIS Folders Wont Change

Seems that my XP Pro IIS is being a jackass. When I run my ASP scripts it seems to give me this wierd error. Big_Al told me that it was because my script is inside a read-only folder and that something along the lines is really messing it all up.

Now this had brought a new problem. I changed the IIS Console features to Read, Write etc. but its not changing the wwwroot nor the sub folders. Whenever I un select read-only it simply reactivates itself ! What do I do to make the damned thing change!?!?!

View Replies View Related

Listing Folders In C: Drive

I want to be able to list all my files in a folder on the hard drive... this will be listed on our local intranet site at work.

View Replies View Related







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