Why not build the controls that you may wish to hide in a separate
function instead of using the designer to build them?
For example (pseudocode)
page_load()
{
renderLabel();
}
void renderLabel()
{
if(conditionIsMet)
{
create new label;
assign any values/attributes to new label;
}
}
On Mar 13, 10:46 am, Adam Schmitz <[email protected]> wrote:
> Hi All,
> Does anyone know if it's possible to stop the loading of a given control at
> a certain time during the load process? My goal is to be able to check a
> certain condition within the "Init" handler and if that condition is true
> call a command that basically says "don't call the Load and PreRender
> functions"
>
> I've tried setting Visible to False but that doesn't work. I've also tried
> Response.End but that stops the ENTIRE response stream and I just want to
> stop the loading process of this specific control. Does anyone know if this
> is possible?
>
> --
> Adam
>
> "Say what you mean and mean what you say. Because those that matter don't
> mind and those that mind don't matter."
> -Dr. Suess