PC Review


Reply
Thread Tools Rate Thread

adding user name & password to FileUpload

 
 
Tony M
Guest
Posts: n/a
 
      22nd Oct 2008

vs 2005 - vb - web page - xp pro

I'm trying to use the fileupload control.
I assume I need to add a user name and password, but can't figure out how.

Dim UpLoadPath As String

UpLoadPath = Server.MapPath("\Blah\") 'I've tried several different
variations of this

Try

fuLoadPromoFile.PostedFile.SaveAs(UpLoadPath & fuLoadPromoFile.FileName)

Label1.Text = "File uploaded!"

Catch ex As Exception

Label1.Text = "File could not be uploaded. " & ex.ToString

End Try


File could not be uploaded. System.UnauthorizedAccessException: Access to
the path 'Blah Blah Blah' is denied. at System.IO.__Error.WinIOError(Int32
errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path,
FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare
share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs,
String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String
path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at
Blah_Default.Button2_Click(Object sender, EventArgs e) in
http://server//Blah/Default.aspx.vb:line 22


Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista will not let Save User Password Appear when user name and password required - Connect to screen dvanthull Windows Vista Administration 4 30th Jun 2008 11:31 AM
Adding new user's password =?Utf-8?B?bmF0YWxpZQ==?= Microsoft Access Security 2 17th Oct 2007 06:40 PM
Adding a user Id and password function =?Utf-8?B?SkJlYXI=?= Microsoft Frontpage 1 17th Jan 2006 01:51 PM
Adding/Modify user password using ldifde Microsoft Windows 2000 Active Directory 1 18th Dec 2003 11:11 PM
Adding an user login name & password Thomas Microsoft Frontpage 2 28th Aug 2003 10:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 AM.