Event of anchor inside a datalist

Posted by Klbaiju under Regular Expressions on 5/22/2011 | Points: 10 | Views : 1876 | Status : [Member] | Replies : 0
hi
I want to display a a table inside hidden field

<div>
<asp:DataList ID="DataList1" runat="server">
<ItemTemplate>

<table>
<tr>
<th>Customername</th><th>Customerid</th>
</tr>
<tr>

<td>'<%#Eval("companyname")%>'</td>
<td>'<%# Eval("Address") %>'</td>
</tr>


</table>

<div>
<a href="#" id="anchor1" onmouseover=" " ,onmouseout= " "; >Customers</a>
</div>
<div id="div1" style="display:none" >
<table>
<tr >Customer Details</tr>
<tr><td>Address</td> <td>Country</td><td>Phone</td></tr>
<tr><td>'<%#Eval("Address")%>'</td><td>'<%#Eval("country")%>'</td><td>'<%#Eval("phone")%>'</td></tr>

</table>
</div>
<hr />
</ItemTemplate>

</asp:DataList>
</div>
this code will display records from table.
my problem is
<div>
<a href="#" id="anchor1" onmouseover=" " ,onmouseout= " "; >Customers</a>
</div>
<div id="div1" style="display:none" >
<table>
<tr >Customer Details</tr>
<tr><td>Address</td> <td>Country</td><td>Phone</td></tr>
<tr><td>'<%#Eval("Address")%>'</td><td>'<%#Eval("country")%>'</td><td>'<%#Eval("phone")%>'</td></tr>

</table>
</div>
i set style property of div1 to style="display:none"
if i put mouse on the anchor iwant to display div1. and if i remove mouse i want to hide div1.
how it is possible

Regards
K L BAIJU




Responses

(No response found.)

Login to post response