How to set User control=false

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2006
Posts: 3
Reputation: thiyag2001 is an unknown quantity at this point 
Solved Threads: 0
thiyag2001 thiyag2001 is offline Offline
Newbie Poster

How to set User control=false

 
0
  #1
Jun 7th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How to set User control=false

 
0
  #2
Jun 7th, 2006
  1. if condition = false then
  2. Control.Visible = true
  3. else
  4. Control.Visible = false
  5. end if

Replace "Control" with the name or ID (the reference) of your server control.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3
Reputation: thiyag2001 is an unknown quantity at this point 
Solved Threads: 0
thiyag2001 thiyag2001 is offline Offline
Newbie Poster

Re: How to set User control=false

 
0
  #3
Jun 7th, 2006
Hi Thanks for your response.But I have tried this .I couldn't false the control.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How to set User control=false

 
0
  #4
Jun 7th, 2006
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.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC