Dear All,
I need to hide the user control by checking a small if condition.If the condition is false then then the user control is set TRUE,else It should be FALSE.How can i do it in ASP.NET with VB.NET .
Thanks,
Thiyagarajan.N

if condition = false then
        Control.Visible = true
else
        Control.Visible = false
end if

Replace "Control" with the name or ID (the reference) of your server control.

Hi Thanks for your response.But I have tried this .I couldn't false the control.

Ok well you will have to post some of your code, and describe in more detail the error you are getting, because there is no reason this should not be possible I have done it only this week in my own ASP.NET project and several times before that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.