Solved

uploading images c#

Posted on 2010-09-13
2
252 Views
Last Modified: 2013-12-17
I'm trying to make a form where user put their information, and upload their images.
Lots of websites tell me how to do things separately.

For example, they all show me how to upload picture (just the picture only), but
I want the filepath of the picture to be uploaded to database along with the other information
submitted.

So when a person clicks the submit,
name, address and other info get uploaded into DB with the image (filename and path)
0
Comment
Question by:kmc10314
2 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 33663787
if you are using fileupload control, you get the name like: FileUpLoad1.FileName

http://www.c-sharpcorner.com/uploadfile/mahesh/fileupload10092005172118pm/fileupload.aspx?articleid=79850d6d-0e91-4d7b-9e27-a64a09b0ee6b

For path: It will be a path on server, and it could be a static one I believe e.g. ~/images or depends on where you are uploading.
0
 

Accepted Solution

by:
kmc10314 earned 0 total points
ID: 33664042
nm.. i got it. thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question