J
Jose Fernandez
Hola
Estoy haciendo un usercontrol que tiene un dropdownlist (id=Mes) y no me ejecuta el evento Mes_SelectedIndexChanged(object sender, EventArgs e)...
AutoEventWireUp es TRUE y tambien el autopostback...
alguien sabe que puede estar pasando?
aqui van los codigos...
<%@ Control Language="c#" AutoEventWireup="true" Codebehind="FechaPicker.ascx.cs" Inherits="Voluntarios.controls.FechaPicker" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp
ropDownList id="Dia" runat="server"></asp
ropDownList>
<asp
ropDownList id="Mes" AutoPostBack=True runat="server"></asp
ropDownList>
<asp
ropDownList id="Ano" AutoPostBack=True runat="server"></asp
ropDownList>
===============================================================
void Ano_SelectedIndexChanged(object sender, System.EventArgs e)
{
DateTime xFecha=new DateTime(Convert.ToInt32(Ano.SelectedItem.Value),MyDate.Month,MyDate.Day);
MyDate=xFecha;
}
private void Mes_SelectedIndexChanged(object sender, System.EventArgs e)
{
DateTime xFecha=new DateTime(MyDate.Year,Convert.ToInt32(Mes.SelectedItem.Value),MyDate.Day);
MyDate=xFecha;
}
Estoy haciendo un usercontrol que tiene un dropdownlist (id=Mes) y no me ejecuta el evento Mes_SelectedIndexChanged(object sender, EventArgs e)...
AutoEventWireUp es TRUE y tambien el autopostback...
alguien sabe que puede estar pasando?
aqui van los codigos...
<%@ Control Language="c#" AutoEventWireup="true" Codebehind="FechaPicker.ascx.cs" Inherits="Voluntarios.controls.FechaPicker" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp
<asp
<asp
===============================================================
void Ano_SelectedIndexChanged(object sender, System.EventArgs e)
{
DateTime xFecha=new DateTime(Convert.ToInt32(Ano.SelectedItem.Value),MyDate.Month,MyDate.Day);
MyDate=xFecha;
}
private void Mes_SelectedIndexChanged(object sender, System.EventArgs e)
{
DateTime xFecha=new DateTime(MyDate.Year,Convert.ToInt32(Mes.SelectedItem.Value),MyDate.Day);
MyDate=xFecha;
}