Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
dcoplien  
#1 Posted : Saturday, January 3, 2004 4:13:00 AM(UTC)
dcoplien

Rank: Member

Groups: Member
Joined: 1/3/2004(UTC)
Posts: 4

I have edited the entry to the default page to create a folder where the photos will be uploaded to. This is because after the fact, another person will FTP to the site and DL the entire folder based on it's name.

How can I pass the name of the folder to pictureGallery.aspx? It appears to not receive any of the form info. I have edited so the name of that folder goes into the dbase but can't seem to get it to pick up that field to add to the server.mappath

--Dori

Andrew  
#2 Posted : Saturday, January 3, 2004 1:56:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
If you need to pass folder name to the action script, you can use either additional form (like author name in the code sample) or pass it through the URL:

Code:
<param NAME="Action" VALUE="PictureGallery.aspx?foldername=YourFolderName">

To extract this folder name from URL, use QueryString property of the Request object:

Code:
<%
Dim strFolderName As String
strFolderName = Request.QueryString("foldername")
Response.Write(strFolderName) 
%>

Edited by user Monday, February 25, 2008 6:31:00 PM(UTC)  | Reason: Not specified

dcoplien  
#3 Posted : Sunday, January 4, 2004 2:16:00 AM(UTC)
dcoplien

Rank: Member

Groups: Member
Joined: 1/3/2004(UTC)
Posts: 4

Worked like a charm!

Thanks

h8u  
#4 Posted : Wednesday, January 23, 2008 10:54:01 PM(UTC)
h8u

Rank: Newbie

Groups: Member
Joined: 1/19/2008(UTC)
Posts: 1

А что, нет возможности нормально добавить через интерфейс JS объекта?..

У нас сейчас возникает необходимость использовать Image Uploader, и я как разработчик высказал свое недоумение по этому поводу.

TRANSLATED:

Quote:
Don't you have the way to add it using JavaScript API?

Edited by user Thursday, January 24, 2008 1:29:34 AM(UTC)  | Reason: Not specified

Fedor  
#5 Posted : Thursday, January 24, 2008 1:28:56 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
To h8u:

This code shows how to send additional data using GET request. Please see topic Uploading Additional Data with Files to know how to do it using POST request.

Edited by user Tuesday, October 28, 2008 6:16:08 AM(UTC)  | Reason: Not specified

Best regards,

Fedor Skvortsov

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.