I am uploading an image and saving it in a folder Image I have created. When I upload second image it must replace the image already existing in the folder. Means Image folder must always contain just one image. How will I do it??
Secondly how will I access the image from another different page? Like, suppose I uploaded the file from Page1.aspx and I want to show the same image on Page2.aspx ??
Language I’m using is C#.
I would suggest to look at this example: ASP.NET forms – Upload image to DB.
One other way would be storing image in folder and accessing it through relative path.
You may also want to look at this post: Best way to create a folder and upload a image to that folder in ASP.NET