1. put a FileUpload control on a Web Page (drag it from the toolbox)
2. put a button on that page
3. on design-mode, doble click on the button (creates and takes you to a click handler)
4. on that code, use the property controlName.HasFile to determine if the use has effectively sent a file
5. use controlName.Save or controlName.FileContent (a Stream) to treat the contents
How to upload image + c#.net?
no idea.....sorry
Reply:You basically upload the image path and then grab it from the db that you are uploading it into and assign it to an image control to display.
However sql i know will allow you to store whole jpeg and gif files in it and retrieve it when needed.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment