This is a migrated thread and some comments may be shown as answers.

Create Upload Folder Based Upon User

3 Answers 84 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 09 Sep 2008, 07:36 PM
I have a Create New User Wizard.  Step 3 of the wizard I am using Rad Upload.  I have a folder on the server called "upload".  When the user clicks the sumbit button of the Rad Upload  I  need a  a folder  to be created based uopn the  users "UserId" and the files will upload into the newly created folder in the upload folder on the server.  I am unsure how to code the page to perform this action.
I am using VB.

3 Answers, 1 is accepted

Sort by
0
Matthew Bishop
Top achievements
Rank 1
answered on 17 Sep 2008, 03:31 AM
This would be it in c# mate, i assume its simular in vb, but if I tried to do it in vb i'd get it all wrong :/

string user=Request.Form["UserId"].ToString();
string path="./upload"+user;
if (!Directory.Exists(Server.MapPath(path) ))
{
Directory.CreateDirectory(Server.MapPath(path);
}

Radupload1.TargetFolder=path;

0
Michael
Top achievements
Rank 1
answered on 23 Sep 2008, 02:31 PM
Thanks for the message that was very helpful.  I am new to this and need assistance in writing this code in VB if anybody can help.
Thanks
0
Steve Kaser
Top achievements
Rank 1
answered on 18 Oct 2008, 03:10 PM
Michael

The site below is a great place to convert c# to VB or VB to c#

http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx


Good luck

Steve
Tags
Upload (Obsolete)
Asked by
Michael
Top achievements
Rank 1
Answers by
Matthew Bishop
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Steve Kaser
Top achievements
Rank 1
Share this question
or