Im trying to update a page for an old website buit in .net 1.1
In the old site, I can access a Placeholder simply by typing
PlaceHolder p = (PlaceHolder)FindControl("CorrectPlaceholder");
However, on the new site, this doesnt work, and the FindControl() method returns null.
If I look into the page I can see the placeholder I want, but I end up having to go throuhg 3 or 4 FindControl() steps to be able to access it.
Can anyone tell me how to get round this issue, so I only need the one FindControl() statement ?
And also why this has changed?
K
In the old site, I can access a Placeholder simply by typing
PlaceHolder p = (PlaceHolder)FindControl("CorrectPlaceholder");
However, on the new site, this doesnt work, and the FindControl() method returns null.
If I look into the page I can see the placeholder I want, but I end up having to go throuhg 3 or 4 FindControl() steps to be able to access it.
Can anyone tell me how to get round this issue, so I only need the one FindControl() statement ?
And also why this has changed?
K