Hi amitsinghr,
As i have gone through your code and the way which you have used for calling the notify alert is registering on the page for one time thats why its showing you only single alert notify so what you need to do is use a string builder and generate a notify alert and append it to builder and register it in end then you will get all alerts for the target date and time which are going to expire within one hour.
StringBuilder st = new StringBuilder();
foreach (DataRow dr in ds.Tables[0].Rows)
{
DateTime rDateTime = Convert.ToDateTime(dr["TargetDate"]).Date + Convert.ToDateTime(dr["TargetTime"]).TimeOfDay;
DateTime nDateTime = DateTime.Now;
TimeSpan span = rDateTime.Subtract(nDateTime);
if (span.Days == 0)
{
if (span.Hours < 1 && span.Hours >= 0)
{
if (span.Minutes > 0)
{
st.Append("$.notify('time left to close ticket " + span.Minutes.ToString() + " minutes','warning');");
}
}
}
}
ClientScript.RegisterClientScriptBlock(this.GetType(), "", st.ToString(), true);