Yes the SP returns the record properly. I just checked again.
The page with the UI has the following code behind. It is on the data bind of the details view where this issue starts (in red).
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
txtEndDate.SelectedDate = DateTime.Now;
txtStartDate.SelectedDate = DateTime.Now.AddDays(-(Convert.ToInt32(Globals.Settings.Tasks.DefaultDat eRangeInDays)));
dvTaskDetails.Visible = false;
}
}
protected void btnRefreshView_Click(object sender, EventArgs e)
{
gvTasks.DataBind();
}
protected void gvTasks_SelectedIndexChanged(object sender, EventArgs e)
{
getTaskDetail();
}
private void getTaskDetail()
{
dvTaskDetails.ChangeMode(DetailsViewMode.Edit);
dvTaskDetails.DataBind();
This has the ID value from the grid. It should grab the record.
dvTaskDetails.Visible = true;
}
Am I missing something obvious? I have a suspicion I might be.
--
Tara G Deschenes
Technimedia LLC
|