填写数据以控制另一个页面上的成功响应



我在成功呼叫上带来了我的 ajax响应,然后我想重定向到新的aspx页面,我所有的 30 input type text控件都是他们的。所以我想要的是我要填写所有值。所以我怎么能实现它。请建议。

这是我到现在尝试的

function getDataForDashboard(rjSapId) {
        $.ajax({
            type: "POST",
            url: "Dashboard.aspx/GetDashboardDataOnFacId",
            data: JSON.stringify({ rjSapId: rjSapId }),
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (response) {                    
                window.location.href = "http://localhost:39800/DashboardData.aspx?Id=" + rjSapId + "";
            },
            error: function (response) {
                alert('Something went wrong..!!');
            }
        });
    }

另一页以下一些控件: -

<span>Site Type:</span>
<input type="text" id="txtSiteType" />
<br />
<span>Facility Type:</span>
<input type="text" id="txtFacilityType" />
<br />

可能是您可以通过执行字符串或将其保存在本地存储中,然后在下一页AJAX中保存在隐藏字段中,然后您可以检索