How to find a child control nested in div tags in ASP.NET
Hi i want to find an image button control which is in a table which is nested in 3 div tags actually it returns null if i use the below code

    for (int j = 1; j < 38; j++)
    {
    	string s = "ib_s" + j;
    	ImageButton img = (ImageButton)FindControl(s.ToString());
    	if (status[j] == "B")
    	{
    		img.ImageUrl = "~/graphics/Booked.jpg";
    		img.Enabled = false;
    	}
        else
        {
    		img.ImageUrl = "~/graphics/Available.jpg";
    	}
    }
as i wanted to find image buttons with id's ib_s1, ib_s2 .... and change the image url.

And i use a master page for this page, so please help me.
How to find a child control nested in div tags in ASP.NET
===

Hi i want to find an image button control which is in a table which is nested in 3 div tags actually it returns null if i use the below code

    for (int j = 1; j < 38; j++)
    {
    	string s = "ib_s" + j;
    	ImageButton img = (ImageButton)FindControl(s.ToString());
    	if (status[j] == "B")
    	{
    		img.ImageUrl = "~/graphics/Booked.jpg";
    		img.Enabled = false;
    	}
        else
        {
    		img.ImageUrl = "~/graphics/Available.jpg";
    	}
    }
as i wanted to find image buttons with id's ib_s1, ib_s2 .... and change the image url.

And i use a master page for this page, so please help me.