Please help me in fixing my problem in saving the resized image. Here is the code:
protected void Resize(object sender, EventArgs e)
{
img3.Src = img1.Src;
img3.Width = Int32.Parse(imgWidth.Text);
img3.Height = Int32.Parse(imgHeight.Text);
Bitmap b = new Bitmap(Int32.Parse(imgWidth.Text), Int32.Parse(imgHeight.Text));
Graphics gr = Graphics.FromImage(b);
b.Save(Server.MapPath(img1.Src + "resized.png"));
}