Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 October 21st, 2004, 07:52 PM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form to upload documents

I am new to ASP and would appreciate help.

I created a form to let my users upload word and pdf docs to the server. The form is not live yet cause don't know how to complete this process. I would like once the documents are uploaded the document name will go to a SQL server database, then recordsets are displayed as hyperlinks in an HTML table.

Is this project even realistic and possible? Please help as I am very confused right now.

 
Old October 21st, 2004, 08:25 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


for uploading file to server,

  use any of third party components. One such component is
ASPSmartUpload http://www.aspsmart.com

After upload the file, insert the filename to the table(database).
When retrieving data, form links with the file name

response.write "<a href='" & rs("filename") & "'>" & rs("filename") & "</a>"

http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=131


----------
Rajani

 
Old October 21st, 2004, 08:54 PM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply raj. I'd rather do the upload without any 3rd party componets. I also would like my users to submit a file name to the database during an upload of the document. Hope I am making sense. I have no asp code in it so far, but this is how my form looks like.

<TITLE></TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="uploadexmple.asp">
    <TABLE BORDER=0>
    <tr><td><b>Enter File Name:</b><br><INPUT TYPE=TEXT SIZE=40 NAME="FULLNAME"></td></tr>
    <tr><td><b>Select a file to upload:</b><br><INPUT TYPE=FILE SIZE=50 NAME="FILE1"></td></tr>
    <tr><td>&nbsp;</td></tr>
    <tr><td align="center"><INPUT TYPE=SUBMIT VALUE="Upload!"></td></tr>
    </TABLE>
</FORM>
</BODY>
</HTML>



Quote:
quote:Originally posted by rajanikrishna


for uploading file to server,

use any of third party components. One such component is
ASPSmartUpload http://www.aspsmart.com

After upload the file, insert the filename to the table(database).
When retrieving data, form links with the file name

response.write "<a href='" & rs("filename") & "'>" & rs("filename") & "</a>"

http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=131


----------
Rajani

 
Old October 22nd, 2004, 07:43 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

   I think many host servers support ASPSmartUpload control. Or ask your server administrator which they supports.

You are doing right way. When you submit form after selecting the file, upload the file to any folder in your tree using upload control(any...) and store the filename in the database.

Using these components is suggestable.


---------
Rajani

 
Old October 23rd, 2004, 11:34 PM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Once again, thanks. Very helpful.

Quote:
quote:Originally posted by rajanikrishna
 Hello,

I think many host servers support ASPSmartUpload control. Or ask your server administrator which they supports.

You are doing right way. When you submit form after selecting the file, upload the file to any folder in your tree using upload control(any...) and store the filename in the database.

Using these components is suggestable.


---------
Rajani






Similar Threads
Thread Thread Starter Forum Replies Last Post
upload more than 10.000 Documents (this is once ta soufiane1 C# 1 September 17th, 2008 03:44 PM
Printing Documents from a Form seananderson Access VBA 0 February 8th, 2007 05:04 AM
Upload.Form problem barkerl Classic ASP Basics 1 January 22nd, 2007 06:06 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM





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