How do I get the value of the date field?

1

I have a method that returns bank values in my screen components. It receives as parameter 3 string and 2 DateTime

protected void Page_Load(object sender, EventArgs e)
{
    if (!this.IsPostBack)
    {
        this.Titulo1.SetaTitulo(Resources.Resource.titulo_cadVideo);
        if (!string.IsNullOrEmpty(Request.QueryString["nIDMedia"]))
        {
            string nIDMedia = Request.QueryString["nIDMedia"];
            Video.PreencheCampos(nIDMedia, txt_descricao.Text, 
                txt_endereco_link.Text, cl_inicio, cl_fim);
            }
        }
    }

The problem is that I can not get the value of the date fields that are cl_inicio and cl_fim which are of type Calendar.

    
asked by anonymous 17.10.2014 / 18:00

1 answer

0

Use as follows:

Video.PreencheCampos(nIDMedia, txt_descricao.Text, 
    txt_endereco_link.Text, cl_inicio.SelectedDate, cl_fim.SelectedDate);
}

See more about SelectedDate here .

    
17.10.2014 / 20:59