Professional Web Applications Themes

Question: Setting HTML OBJECT to invisible - ASP.NET General

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

  1. #1

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




    VB Guest

  2. #2

    Default Re: Question: Setting HTML OBJECT to invisible

    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" <com> wrote in message
    news:phx.gbl... 


    Kevin Guest

  3. #3

    Default Re: Question: Setting HTML OBJECT to invisible

    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" <com> wrote in message
    news:%phx.gbl... 
    in [/ref]
    WIDTH: 
    >
    >[/ref]


    VB Guest

Similar Threads

  1. Flash slideshow invisible in HTML
    By migocki in forum Macromedia Flash Data Integration
    Replies: 1
    Last Post: February 14th, 12:44 PM
  2. Datagrid invisible TemplateColumn dose not generate HTML object?
    By rockdale in forum ASP.NET Data Grid Control
    Replies: 2
    Last Post: June 7th, 01:31 PM
  3. Making 3D object invisible then visible
    By naddasmiles in forum Macromedia Director 3D
    Replies: 2
    Last Post: August 13th, 05:34 PM
  4. Setting Values in Form for Object
    By dataczarina in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 7
    Last Post: March 22nd, 04:08 PM
  5. beginner's question: how to select an object behind an object?
    By shawn in forum Adobe Flash, Flex & Director
    Replies: 1
    Last Post: December 19th, 09:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139