Hi,
I have a table that has the ff:
LastName varchar(50)
FirstName varchar(50)
PhotoPath varchar(50)
Now I want to create a form that can accept the LastName,Firstname and also can upload a picture which in turn the filename of the image will be the value for the PhotoPath field, and eventually displays it using the repeater control.
Your Help/Info. is highly appreciated...
Jeff
This answers your question
http://forums.asp.net/t/1113089.aspx
|||Check this tutorialhttp://www.asp.net/Learn/DataAccess/#binary
It explains you both options to save the photos (as a file as well as an image object in the database)
Another link:http://aspalliance.com/articleViewer.aspx?aId=138&pId
Thanks
|||Hi Jeff,
Saving first and last names are simple enough, you can search for any good ADO.NET tutorial for this.
For uploading an image file, check this article:
http://www.4guysfromrolla.com/webtech/091201-1.shtml
After uploading, save the filepath in the DB table and then show it as the image url in the repeater control.
Hope this helps,
Vivek
sql
No comments:
Post a Comment