Solved

Hide User Control in VB

Posted on 2009-05-11
1
169 Views
Last Modified: 2013-11-26
I would like to hide this usercontrol in code behind vb if Session("hide") = "yes"

 <uc1:flashMovie ID="flashMovie" runat="server"></uc1:flashMovie>

This code is not working
 Dim ctl As UserControl
            ctl.FindControl("flashMovie").Visible = False
0
Comment
Question by:lrbrister
1 Comment
 
LVL 18

Accepted Solution

by:
carlnorrbom earned 500 total points
Comment Utility
Hi,

Have You simpy tried using:

flashMovie.Visible = False

Or you can try:

flashMovie.Attributes.Add("style", "visibility:hidden;display:none;")

/Carl.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now