1
I have a method that returns database values in my screen components. It takes 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’t get the value of the date fields that are the cl_inicio
and cl_fim
which are of the Calendar type.
Only with this piece of code is it difficult to know what is happening. Is there any specific reason for these variables to be of the type
Calendar
?– Maniero
Your question is not clear yet. Is the problem: Take the value and show it in a text field? Take the value and show it marked in the calendar? Take the value the user selected from the screen?
– Renan