I was trying to set a property on a UserControl I Load like 50 of at a time. anyway. first i did this.
And, I was pretty much 10 minutes later calling myself a dumb @$$ because well duh cast it and just set the property....Code:public override System.Web.UI.Control FindControl(string id) { if(id.IndexOf("PictureGUID") != -1) { string[] s = id.Split('|'); PictureGUID = s[1]; return null; } return base.FindControl(id); }
To the true question. I have a Control that loads an image and has a button. The button deletes the image from the db. The UserControl is loaded dynamicly and for some reason on the first postback after it's deleted there is an empty box. I.E. the UserContol with a invalid picture the x.
Anybody have any ideas?




Reply With Quote