Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/11/2004, 14:25
carlostapia
 
Fecha de Ingreso: septiembre-2004
Mensajes: 141
Antigüedad: 19 años, 7 meses
Puntos: 0
tomar fecha, porque no funciona

hola tengo el calendario del aspx, pero quiero que cuando se seleccione una fecha salga en el textobox y poder luego esa fecha ir a una base de datos a buscar los documentos que tienen entre las fechas seleccionadas, obviamente pondre otro calndario cuando me funcione asi tendre desde y hasta

adjunto el codigo alguien me puede decir que le falta para que capture la fecha???????



<%@ Page Language="VB" %>
<script runat="server">

'

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<input onclick="OnClick()" type="button" value="Date" />
<br />
<!-- Insert content here -->
<div id="divCalendar" style="DISPLAY: none; POSITION: absolute">
<asp:Calendar id="Calendar1" runat="server" CellPadding="4" DayNameFormat="FirstLetter" BorderStyle="Outset" BorderColor="#999999" Font-Names="Verdana" Font-Size="8pt" Height="180px" ForeColor="Black" Width="200px" BackColor="White" BorderWidth="2px" onselectionchanged="Date_Selected">
<TodayDayStyle forecolor="Black" backcolor="#CCCCCC"></TodayDayStyle>
<SelectorStyle backcolor="#CCCCCC"></SelectorStyle>
<NextPrevStyle verticalalign="Bottom"></NextPrevStyle>
<DayHeaderStyle font-size="7pt" font-bold="True" backcolor="#CCCCCC"></DayHeaderStyle>
<SelectedDayStyle font-bold="True" forecolor="White" backcolor="#666666"></SelectedDayStyle>
<TitleStyle font-bold="True" bordercolor="Black" backcolor="#999999"></TitleStyle>
<WeekendDayStyle backcolor="#FFFFCC"></WeekendDayStyle>
<OtherMonthDayStyle forecolor="#808080"></OtherMonthDayStyle>
</asp:Calendar>
</div>
<script>
function OnClick()
{
if( divCalendar.style.display == "none")
divCalendar.style.display = "";
else
divCalendar.style.display = "none";
}
</script>
</form>
</body>
</html>