Sep 23, 2004 #1 T Tamer_Ahmed Centurion Joined Dec 20, 2003 Messages 159 Location Egypt how can i let the user browse his machine with normal openfiledialog and upload the image on my server and then insert it into the database
how can i let the user browse his machine with normal openfiledialog and upload the image on my server and then insert it into the database
Sep 23, 2004 #2 R Robby Ultimate Contributor Joined Nov 17, 2002 Messages 3,460 Location Montreal, Ca. To browse for files use System.Web.UI.HtmlControls.HtmlInputFile, this will create the tag <INPUT TYPE=file />. Here's an article of use...http://www.codeproject.com/aspnet/fileupload.asp Keep in mind that in the long run you're better off saving the image to disk and only saving the path of the image to the database.
To browse for files use System.Web.UI.HtmlControls.HtmlInputFile, this will create the tag <INPUT TYPE=file />. Here's an article of use...http://www.codeproject.com/aspnet/fileupload.asp Keep in mind that in the long run you're better off saving the image to disk and only saving the path of the image to the database.