Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 11th, 2009, 01:56 AM
Authorized User
 
Join Date: Dec 2008
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default external File Upload

Hi! in my app external files need 2 b uploaded using a textbox(no file upload control)so the file name is manually specified..the file is not getting saved
Code:
  string strPath = ConfigurationManager.AppSettings["AttachmentsPath"].ToString(); strFilePath = strPath + "\\Projects\\" + ViewState["ProjectID"].ToString(); objAttachment.AttachmentName = strFilePath;  objAttachment.FileName = txtExternal.Text;
thats my code there
__________________
Yamini
  #2 (permalink)  
Old March 11th, 2009, 06:47 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hello...

what is objattachment???

and when do you upload it??

And why not use the file upload control???
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
  #3 (permalink)  
Old March 11th, 2009, 07:13 AM
Authorized User
 
Join Date: Dec 2008
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

i need to access files from Share folders ...Alrite...the page is such where i can upload image using an fileupload control n a textbox where i can enter file path say:"\\D01xyz001\New\a.txt" where D01xyz001 is an intranet connection...the path now gets saved in a gridview n i acess it thu a link btn bound to the grid..no pobs in acessing the images as it gets saved in the local folder ..error i get when acessing the external file is Logon Failed:Unknown Username or bad pwd ..i used content:disposition to force open/save the images n i'm using 3 tier architecture so objAttachment is a business object
__________________
Yamini
  #4 (permalink)  
Old March 11th, 2009, 07:41 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

First you tell the problem is that the file didn't get upload. Now you are talking about Login problems. Could you clarify your problem?
Also you show the upload code (?) but there is no reference to logins anywhere??? How are you managing logins?
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
  #5 (permalink)  
Old March 11th, 2009, 08:33 AM
Authorized User
 
Join Date: Dec 2008
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

sorry my mistake ...i was not able to upload the file in the beginning but manged to do that .....when try to acess a file in another machine within the network the path of which i save to a grid i get this log on error ..i'm wondering if it has something to do with authorization ?... simply put how do u acess an xternal file ?
__________________
Yamini
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling to an external .jar file tony_s XSLT 3 December 16th, 2006 05:20 PM
External file compile to run petermail Visual Studio 2005 2 September 6th, 2006 05:08 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
refreshing external js file fs22 Javascript How-To 1 June 17th, 2004 05:02 PM
Opening file external kaivanrijswijk VBScript 0 March 29th, 2004 05:43 PM



All times are GMT -4. The time now is 05:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.