473,326 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Question: Setting HTML OBJECT to invisible

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">
:
:


Nov 17 '05 #1
2 1492
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.

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:ux**************@TK2MSFTNGP09.phx.gbl...
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">
:
:

Nov 17 '05 #2
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
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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.

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:ux**************@TK2MSFTNGP09.phx.gbl...
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">
:
:


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: CSDunn | last post by:
Hello, I currently have an Access 2003 ADP Report/Subreport set up in which I have 12 subreports in a single main report that are located in a group header called 'PermnumHeader' (Permnum would be...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
1
by: msnews.microsoft.com | last post by:
What is the best solution for the following scenario: I have a contacts database and I am creating the business layer obects to access my data objects. (So the DB is invisible to the Business...
6
by: MW de Jager | last post by:
I'm trying to create an html page that will change dynamically. I need to switch html -buttons between visible and invisible. Is there any way I can do this with a script? Regards MW
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
4
by: mac | last post by:
Brand Newbie Alert! I am working through the "Build a Program Now!" book by Microsoft Press. The last chapter has a little app that should stay in the system tray when the user clicks on the 'X'...
5
by: Keith | last post by:
Hello all, I have a C# Windows Forms app. It is in namespace App.GUI. It builds to Nav.exe. I have entered an application level setting using the designer. Its type is string, name is "FOO"...
11
by: Peter | last post by:
I'm new at this stuff -- so this is probably an incredibly dopey, newby question. Please bear with me. I don't know if it's a HTML or javascript question. (Or, if a different area altogether,...
2
by: anathema | last post by:
this is not specifically behaviour related, but i thought i would risk asking anyway. i am working on a script that triggers a blind down or blind up effect by clicking on a particular link. it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.