Click here to Skip to main content
15,178,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Friends,
below is my code in my aspx page. Here I call silverlight application in object tag. My requirement is that I want to overlap 'myoverlapping' div on 'silverlightControlHostContainer' div means

myoverlapping over silverlightControlHostContainer
<form id="form1"  runat="server" style="height: 100%;">
    <div style="height: 100%; width: 100%">
        <div   id="silverlightControlHostContainer"  style="height: 100%; width: 100%; background-color: Aqua; z-index: 99; removed: absolute">
            <div id="silverlightControlHost" style="height: 100%; width: 100%; background-color: Aqua;
                position: absolute">
                 <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" style="height: 100%; width: 100%;background-color:Aqua;z-index:99;position:absolute"
            width="100%" height="100%">
            <param name="source" value="ClientBin/SilverlightApplication1.xap" style="background-color:Aqua;z-index:99;removed:absolute" />
            <param name="onError" value="onSilverlightError"  style="background-color:Aqua;z-index:99;removed:absolute"/>
            <param name="background" value="white" />
            <param name="minRuntimeVersion" value="4.0.50826.0" style="background-color:Aqua;z-index:99;removed:absolute"/>
            <param name="autoUpgrade" value="true" />
            <a href="" style="text-decoration: none;background-color:Aqua;z-index:99;removed:absolute">
                <img src="" alt="Get Microsoft Silverlight"
                    style="border-style: none;" />
        <div id="myoverlappingdiv" style="height: 100%; width: 100%; background-color: Red; z-index: 100; removed: absolute">

please help me

Add below line into object Tag in your aspx page...
this param is used for rendering your object tag behind the html page....
<param name="windowless" value="true" />
hey just set z-Index Property from Xaml file in canvas.....
Sangramsingh Pawar 8-Aug-12 5:31am
Hey man i Already done that thing plz see above question
prashant patil 4987 8-Aug-12 5:32am
try setting z-index as -1 or 0.
Sangramsingh Pawar 8-Aug-12 6:13am
I tried this but not working
set z-index in negative for silverlightControlHostContainer
prashant patil 4987 8-Aug-12 6:30am
z-index property not working with silverlight object tag in
You just have the z-index in your div..not in the object tag and then try..also see this Link it might be useful for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900