I am rotating an image using the following code...........
protected void Button2_Click1(object sender, EventArgs e)
string abc = Server.MapPath(Image2.ImageUrl.Replace("/", "\\"));
System.Drawing.Image img = System.Drawing.Image.FromFile(abc);
//re-save the picture as a Jpeg
//tidy up after we've finished
The rotation does happen but it is overwriting the original image on every click on button .
1. I have a grid showing images.
2. The image that is clicked in gridview is displayed in Image control.
3. Now, i apply rotate function on this image control.
... but what the method mentioned above is doing is that it is overwriting the image and the image displayed in gridview also rotates... I do not want this... Rotation should happen only in Image control for the image that is displayed in it.