.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 8th, 2004, 08:13 PM
Naomi Naomi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 6 Naomi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problems with file management

i'm using vb.net, asp.net and sql server 7.

i need to know the codes for uploading word documents and image into the database.

after which i can retrieve it from the database and put it into a datagrid and allows other users to download or view the files.

pls help! thks!

Reply With Quote
  #2  
Old March 9th, 2004, 11:54 AM
bombaywala bombaywala is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Arlington, VA
Posts: 191 bombaywala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 37 sec
Reputation Power: 5
Send a message via AIM to bombaywala Send a message via MSN to bombaywala Send a message via Yahoo to bombaywala
I wonder why you want to store .doc files and img files in your db. You can store those files on your servers HD and store link/filenames in the DB.

Something like:

Word_File | Image_File
abc.doc | abc.gif

and then from asp you can display using DataContainer Class:

Code:
<a href='yourpath/<%# DataBinder.Eval(Container.DataItem, "rname") %><%# DataBinder.Eval(Container.DataItem, "rname") %></a>

and same for the image. Hope this explains.

Reply With Quote
  #3  
Old March 9th, 2004, 07:27 PM
Naomi Naomi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 6 Naomi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have no choice. this was the task given to me

anyway, thanks! hope someone can still help me

Reply With Quote
  #4  
Old March 11th, 2004, 12:20 PM
bombaywala bombaywala is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Arlington, VA
Posts: 191 bombaywala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 37 sec
Reputation Power: 5
Send a message via AIM to bombaywala Send a message via MSN to bombaywala Send a message via Yahoo to bombaywala
There you go: http://www.codeproject.com/aspnet/fileupload.asp

This shows you how to upload .gif - You can use same tool for uploading .doc Goodluck....

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Problems with file management


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT