Here is my code for redirecting page. Pop up is getting closed but it is not redirecting.
public static void Close(Page page, object result)
{
page.Response.ClearContent();
var sb = new StringBuilder();
sb.Append("<html>");
sb.Append("<head>");
sb.Append("if (parent && parent.DayPilot && parent.DayPilot.ModalStatic) {");
sb.Append("parent.DayPilot.ModalStatic.result = " +
  ...
Go to the complete details ...