Question: Setting HTML OBJECT to invisible

V

VB Programmer

In HTML how can I set an OBJECT to be invisible?

I know if it was a label I could do this just set Visible="False", like
this... (after id)
<asp:label id="lblStatus" visible="False"...>

This is what my OBJECT partially looks like...
<OBJECT id="MyActiveXControl" style="Z-INDEX: 104; LEFT: 200px; WIDTH:
132px; POSITION:..."
codeBase="http://MyPc/Download/cwui.ocx" classid="clsid:D940..."
name="MyActiveXControl" VIEWASTEXT>
<PARAM NAME="_Version" VALUE="393218">
:
:
 
K

Kevin Spencer

Add a runat=server attribute to the tag. Implement an HtmlGenericControl in
the CodeBehind to access it. Set the Visible property to False.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.
 
V

VB Programmer

Would this work???...
1. In HTML, wrap the OBJECT (unmanaged ActiveX control) with a span. For
example...
<span id="MySpan" runat="server">
<OBJECT id="MyActiveX"...>
<PARAM NAME="MyParam" VALUE="123">
:
</OBJECT>
<span>
2. In codebehind do: MySpan.Visible = False
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top