
tengo un linkbutton que cuando le doy clic se muestra mi panel control con datos, pero como le puedo hacer para que al volverle a darle clic se esconda mi panel control ....
este es mi codigo....................
<script runat="server">
Sub mostrarfecha (Src As Object, Args As EventArgs)
fecha.Text = DateString
tiempo.Text = TimeString
fechatiempo.Visible = True
End Sub
</script>
<form runat="server">
<asp:Panel id="fechatiempo" runat="server" Visible="false">
<table cellpadding="3" width="150" border="1">
<caption>
<b>la fecha y el tiempo</b>
</caption>
<tbody>
<tr style="BACKGROUND-COLOR: #f0f0f0">
<th>
fecha</th>
<th>
tiempo</th>
</tr>
<tr>
<td align="middle">
<asp:Label id="fecha" runat="server"></asp:Label></td>
<td align="middle">
<asp:Label id="tiempo" runat="server"></asp:Label></td>
</tr>
</tbody>
</table>
</asp:Panel>
<asp:linkButton id="botonsito" onclick="mostrarfecha" runat="server" Text=" mostrar fecha/tiempo"></asp:linkButton>
</form>
gracias por la su tiempo
