Results 1 to 3 of 3

Thread: LoadControl ***

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Red face LoadControl ***

    I was trying to set a property on a UserControl I Load like 50 of at a time. anyway. first i did this.
    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);
    		}
    And, I was pretty much 10 minutes later calling myself a dumb @$$ because well duh cast it and just set the property....

    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?
    Last edited by Lethal; May 25th, 2004 at 07:33 AM.
    Magiaus

    If I helped give me some points.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width