I am facing an issue with my code.
Within my asp:Wizard
element, I have multiple steps. In one step, when I click on a button, a popup opens using window.open
to select a date and time. However, after selecting the datetime in the popup, it is not visible in the parent window until I manually refresh the page by clicking on window.open
again. I've tried reloading the parent page when closing the popup using
window.parent.opener.location.reload
, but this approach resets the active step of my wizard. So, I'm looking for a solution that allows me to partially refresh the page while keeping the current step intact. Below is the relevant code snippet:
My opener:
var childWindow = window.open("../../Utils/CalendarPopup.aspx?DatePred=StatementDateFrom", "", "height=280; width=285;");
childWindow.onunload = function ()
{ // Need to reload here }
My popup:
Session[Request.Params["DatePred"]] = CalendarSelectDate.SelectedDate;
Session["CalendarPopupCanceled"] = 0;
this.ClosePage();
Data loading:
if (Session["StatementDateFrom"] != null)
{
{
(WizardProcess.FindControl("DtTxtBxStatementDateFrom") as Syncfusion.Web.UI.WebControls.Shared.DateTimeTextBox).IsNullDate = false;
(WizardProcess.FindControl("DtTxtBxStatementDateFrom") as Syncfusion.Web.UI.WebControls.Shared.DateTimeTextBox).Value = System.Convert.ToDateTime(Session["StatementDateFrom"]);
}
Session["StatementDateFrom"] = null;
}
Thank you for your assistance.