I have a web form with 4 image control and one button. The current width of each image is 200 px. Whenever the user click the button " Change size", it will increase the value of the width property by 10 px in each image until it reaches the maxiumwidth value 250 px in each image.
Here is the code behind
protected void Button1_Click(object sender, EventArgs e)
{
// the maximum pixel setting for the width in each image
Unit max = new Unit(250);
// the temporary pixel adding to the width of each image control
double temp = 10;
while (Image1.Width.Value < max.Value && ...
Go to the complete details ...