Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<script type="text/javascript">
    function change(lnk,evt)
    {
        if(evt.type == "mouseover")
        {
            lnk.style.color = "red";
            lnk.style.fontSize = "60";
            document.getElementById('<%= tbl123.ClientID %>').style .visibility ="visible";
            document.getElementById('tbl123').style .display="block";
        }
        else if(evt.type == "mouseout")
        {
            lnk.style.color = "blue";
            lnk.style.fontSize = "20";
            document.getElementById('<%= tbl123.ClientID %>').style .visibility ="hidden";
        }
    }
    </script>


and
XML
<asp:TableRow Width="100%" SkinID="SkinRow" runat="server">
           <asp:TableCell Width="100%" >
               <asp:LinkButton ID="lnk" runat="server" Text="mangal" onmouseover="change(this,event);"
                   onmouseout="change(this,event);"></asp:LinkButton>
               <asp:Table ID="tbl123" runat="server" Visible="false">
                   <asp:TableRow runat="server">
                       <asp:TableCell runat="server"></asp:TableCell>
                   </asp:TableRow>
                   <asp:TableRow>
                       <asp:TableCell runat="server" Text="mangal123">mangal123</asp:TableCell>
                   </asp:TableRow>
                   <asp:TableRow>
                       <asp:TableCell runat="server" Text="mangal1234556">mangal1234556</asp:TableCell>
                   </asp:TableRow>
               </asp:Table>
           </asp:TableCell>
       </asp:TableRow>



now i got an error is OBJECT REQUIRED..
please help me . thank u
Posted

1 solution

'<%= tbl123.ClientID %>'

Check whether this variable return the exact ID you looking for
 
Share this answer
 
Comments
Mangal Deep Gupta 26-Feb-13 6:42am    
yeah i checked it there is null value in '<%= tbl123.ClientID %>'


but i cant understand how can i solve this problem please help me
Mangal Deep Gupta 26-Feb-13 6:59am    
thnak u i solved it......

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