Rank: Newbie
Groups: Member
Joined: 1/9/2008(UTC) Posts: 5
|
hi , sorry for l 'English, would I like to send upload.aspx of the parmetris to the page external type gallerypath = ".. /.. /.. / public/gallery / ", as must the code be inserted in default.aspx? and as the value it is read in upload.aspx? ex. upload.aspx Code:<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Xml" %>
<script runat="server">
'This variable specifies relative path to the folder, where the gallery with uploaded files is located.
'Do not forget about the slash in the end of the folder name.
' Private galleryP As String = "../../../public/Gallery/"
Private galleryPath As String = & Request.form["galleryP"]
thanks
Edited by user Monday, February 25, 2008 3:54:24 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
|
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/9/2008(UTC) Posts: 5
|
in default.aspx ........ <script type="text/javascript"> //<![CDATA[ function ImageUploader_BeforeUpload(){ getImageUploader("ImageUploaderID").AddField(galleryp, "../../../public/Gallery/"); } ...... iu.addParam("Action", "upload.aspx"); iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload"); in upload.aspx <%@ Page Language="VB" AutoEventWireup="false" Debug="true" ValidateRequest="false" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Xml" %> <script runat="server"> 'This variable specifies relative path to the folder, where the gallery with uploaded files is located. 'Do not forget about the slash in the end of the folder name. Private galleryPath As String = "<%=request.form("galleryp")%>" ....... where is the error ?
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, May be you should better use "galleryp" instead of galleryp (no quotation marks specified) Code:getImageUploader("ImageUploaderID").AddField("galleryp", "../../../public/Gallery/");
Edited by user Monday, February 25, 2008 4:00:26 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/9/2008(UTC) Posts: 5
|
|
|
|
|
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.