Thanks for the explanation. I wasnt sure if the PageLoad was suppose to get execute
The problem that I am having is that when I change the date on the calandar it reloads the iframe in the page. The only time I change the Iframe is when
SelectionChanged is triggered. Is their a way for the iframe not to be re-loaded. Nothing in the parent page is triggering it. Below is the Selection change
protected void rcStartDate_SelectionChanged(object sender, Telerik.Web.UI.Calendar.SelectedDatesEventArgs e)
{
// LoadSpecialDays();
PostedReportsBusinessLayer objposted = new PostedReportsBusinessLayer();
DataTable dt = objposted.GetLatestReport(catId, rcStartDate.SelectedDate);
if (dt.Rows[0]["Title"] .ToString().Length>0)
{
lbTitle.Text = dt.Rows[0][
"Title"].ToString();
lbStartDate.Text = ((
DateTime)dt.Rows[0]["StartDate"]).ToShortDateString();
lbEndDate.Text = ((
DateTime)dt.Rows[0]["EndDate"]).ToShortDateString();
lbFilename.Text = dt.Rows[0][
"FileName"].ToString();
rcStartDate.SelectedDate = (
DateTime)dt.Rows[0]["StartDate"];
iframe.Attributes[
"src"] = "StreamIframeFile.aspx?file=" + dt.Rows[0]["FILENAME"].ToString() + "&FilePath=" + contentRoot + dt.Rows[0]["Id"].ToString();
//injectScript.Text = "<script type='text/javascript'>\n window.frames['" + iframe.ClientID + "'].src=\"StreamIframeFile.aspx?file=" + dt.Rows[0]["FILENAME"].ToString() + "&FilePath=" + contentRoot + dt.Rows[0]["Id"].ToString() + "\"\n</" + "script>";
}
}