Hi
Error - Use of unassigned localvariable StuckDate
DateTime StuckDate;
//hdfLeadId.Value = "1243";
BALLeadDetail bALLeadDetail = new BALLeadDetail();
List<View_LeadDetail> objResult = bALLeadDetail.GetLeadHistoryByDesc(Convert.ToInt32(hdfLeadId.Value));
foreach (View_LeadDetail colum in objResult)
{
if (rowctr == 1)
{
StuckDate = Convert.ToDateTime(colum.ActualActionDate);
}
if (colum.ActionTypeID != Convert.ToInt32(hdfActionTypeId.Value))
{
ltrlDays.Text = (DateTime.Now - StuckDate).Days.ToString();
break;
}
else
{
StuckDate = Convert.ToDateTime(colum.ActualActionDate);
}
rowctr++;
}
Thanks