Author: rmdw | Posted on: 4/19/2009 4:05:18 PM | Views : 269

I've built a user control that displays an image (and then alters that image every few seconds).  One of the properties is 'Width'.  In the Page_Load event handler I have this code:

      if (!IsPostBack)
      {
        if (Width > 0)
          imagePhoto.Style.Add("width", Width.ToString());
      }
 
Here's the strange thing: It works BUT does NOT work with the first image, only the 2nd & subsequent images.
Why would that be?
Robert

...

Go to the complete details ...