Hi sir,
I am getting error "Not all code returns a value error in asp.net". I attached the code below.
Kindly give me the solution for this.
public DateTime get_lastsearch()
{
try
{
DataSet lastsearch_ds = new DataSet();
db.executequery("SELECT max(searchdate) FROM tbl_search_log", out lastsearch_ds, out count);
DateTime search_date = Convert.ToDateTime(lastsearch_ds.Tables[0].Rows[0]["max(searchdate)"].ToString());
return search_date;
}
catch (Exception ex)
{
return null;
}
}
With regards,
J.Prabu
[Email:prbspark@gmail.com]
With regards,
J.Prabu.
[Email:prbspark@gmail.com]