954,178 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to set User control=false

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

thiyag2001
Newbie Poster
3 posts since May 2006
Reputation Points: 10
Solved Threads: 0
 
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.

hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
 

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

thiyag2001
Newbie Poster
3 posts since May 2006
Reputation Points: 10
Solved Threads: 0
 

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.

hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You