I've created a function in C# thats results in a Redirect. See below. This function is called by a certain button on my page.
When using this in IE it works like a charm. But, using it in Firefox or other browsers it results in an error telling me that "window.parent.navigate" is not a function.
Any Ideas how i can fix this problem?
private void Redirect(string captureType)
{
Telerik.Web.UI.RadAjaxManager mngr = (Telerik.Web.UI.RadAjaxManager)this.Page.Master.FindControl("RadAjaxManager");
if (mngr != null)
{
mngr.ResponseScripts.Add(string.Format("window.parent.navigate('Capture.aspx?CaptureType={0}');", captureType));
}
else
{
throw new Exception("RadAjaxManager required on masterpage.");
}
}
When using this in IE it works like a charm. But, using it in Firefox or other browsers it results in an error telling me that "window.parent.navigate" is not a function.
Any Ideas how i can fix this problem?
private void Redirect(string captureType)
{
Telerik.Web.UI.RadAjaxManager mngr = (Telerik.Web.UI.RadAjaxManager)this.Page.Master.FindControl("RadAjaxManager");
if (mngr != null)
{
mngr.ResponseScripts.Add(string.Format("window.parent.navigate('Capture.aspx?CaptureType={0}');", captureType));
}
else
{
throw new Exception("RadAjaxManager required on masterpage.");
}
}