Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/06/2004, 12:14
Avatar de Fher
Fher
 
Fecha de Ingreso: febrero-2003
Ubicación: En algun lugar de cancun
Mensajes: 384
Antigüedad: 21 años, 3 meses
Puntos: 0
esconder y mostrar panel

hola tengo un problema que por no conocer las propiedades un clic estoy algo confuso..

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
__________________
solo firma