Want to add photo in employee web form and then edit that photo also.
kindly give me code for the same.
File uploading code for c# asp.net visual studio 2010
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
SenthilkumarRank #387 · 6.5K pointsPosted Apr 21, 2012, 12:53 AM EDT
You can use the file upload control to upload into the web server folder.
<asp:FileUpload ID="fileUpload1" runat="server" />
In the server side, you need to save the images after select the appropriate image
Then, you can store the image name in the database along with the other information.
The uploaded image can be shown in the image control.