473,386 Members | 1,738 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,386 software developers and data experts.

make an <object> invisible or moved to back?!

Hi all,
I have the following code in the html part of my asp.net page to display an
activeX control object which is like a picture viewer:
----------------------------
Response.Write("<object style='position: absolute; left=275px; top=73px;
width=725px; height=595px;' width='656px' height='475px'
classid='clsid:68CE4C35-090C-470B-B956-96B129554E64' standby='Please Wait...'
codetype='application/x-oleobject' codebase='com/test.cab'>" & vbCrLf)

Response.Write("<param name='RecordParam4' value='" &
Session("RecordParam4") & "'>" & vbCrLf)
Response.Write("</object>" & vbCrLf)
---------------------------------

When it is displayed on the page, it is always on top of everything else,
meaning i have to position everything else on the page around this object..
now is there a way i could turn the visible of this object to false, or move
it to the back so i could put a new thing, the exact same size, right on top
of this??
it is only about 5% of the time i need a new thing to replace that object,
the majority of the time i'm using that object and need it exactly how it is
now..
--
Ad****@hotmail.com
Nov 19 '05 #1
2 1635
com objects, will always be infront of the page, because there are created
in top most window. if you create two com object the z-order will work for
the two objects. how well you can hide the com objects depends on how well
behaved it is. if may support an invisible property, or support a size of
zero.

-- bruce (sqlwork.com)
"ACaunter" <Ad****@hotmail.com> wrote in message
news:F7**********************************@microsof t.com...
| Hi all,
| I have the following code in the html part of my asp.net page to display
an
| activeX control object which is like a picture viewer:
| ----------------------------
| Response.Write("<object style='position: absolute; left=275px; top=73px;
| width=725px; height=595px;' width='656px' height='475px'
| classid='clsid:68CE4C35-090C-470B-B956-96B129554E64' standby='Please
Wait...'
| codetype='application/x-oleobject' codebase='com/test.cab'>" & vbCrLf)
|
| Response.Write("<param name='RecordParam4' value='" &
| Session("RecordParam4") & "'>" & vbCrLf)
| Response.Write("</object>" & vbCrLf)
| ---------------------------------
|
| When it is displayed on the page, it is always on top of everything else,
| meaning i have to position everything else on the page around this
object..
| now is there a way i could turn the visible of this object to false, or
move
| it to the back so i could put a new thing, the exact same size, right on
top
| of this??
| it is only about 5% of the time i need a new thing to replace that object,
| the majority of the time i'm using that object and need it exactly how it
is
| now..
| --
| Ad****@hotmail.com
Nov 19 '05 #2
Thanks for the reply Bruce,
I have the 1 com object and the other thing i needed to put infront of it
was Windows Media Player:
<embed src='<% Response.Write(Session("movie")) %>' style="Z-INDEX: 101;
LEFT: 8px; WIDTH: 852px; POSITION: absolute; TOP: 56px; HEIGHT: 550px;
BACKGROUND-COLOR: white" align="middle" id="movie"></embed>

Could you provide any code that i could write behind an asp.net button
(vb.net code) which could set that first com object to invisible or reset its
size to zero.. and make my embeded media player visible

thanks
Nov 19 '05 #3

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

Similar topics

0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
6
by: Christopher Benson-Manica | last post by:
(I posted this as a reply to my thread about iframes, but I think it may get mostly ignored there.) http://ataru.gomen.org/files/test.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
4
by: KC | last post by:
Could some one explain to me the casting rules for sending generic lists, ex. List<Person>, to a function that accepts List<object>? I cannot get the following easy-cheesy app to work. I get the...
1
by: easy.lin | last post by:
.... <object id="10">door</object> .... I try to write this in clipse XSD editor <element name="object" type="string"> <attribute name="id" type="int"></attribute> </element> but get wrong...
4
by: colson | last post by:
Hi, If I have a class A, and a List<List<object>> containing instances of A. How do I explicitly cast List<List<object>> as List<List<A>>?
4
by: msnews.microsoft.com | last post by:
hello every one i am using media player in internet explorer but i cannot access it directly in code behind, so do you know a way to access it? <object id="video123"...
0
by: diver | last post by:
I was using an <iframe> to load a website within my .aspx page. When the user "logged out", I called a javascript break out function to breakout of the frame and load the appropriate page when...
9
by: Stephan Steiner | last post by:
Hi I seem to have a bit of trouble understanding one bit of how generics work: In C#, every class automatically derives from object, and inherits a bunch of properties (i.e. ToString()). Thus,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.