Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
Old March 11th, 2009, 06:47 AM
Friend of Wrox
 
Join Date: Jun 2003
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.
================================================== =========
 
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
 
Old March 11th, 2009, 07:41 AM
Friend of Wrox
 
Join Date: Jun 2003
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.
================================================== =========
 
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.