单击按钮时,我希望页面显示一个alert
窗口,然后将用户重定向到不同的表单。最初没有添加任何参数,代码按照我想要的那样工作。添加参数后,页面不会重定向到表单。
Response.Write("<script>alert('Customer visit record for the visit has been created.You will now be taken to customer visit process.');"
+ "window.location='CustomerVisit.aspx?bookingID="+cust_visit.BookingID.ToString()+
"&customerID="+cust_visit.CustomerID.ToString()+"</script>");
我想添加参数,这样我就可以在下一个表单中使用它们:
Request.QueryString["bookingID"]
https://stackoverflow.com/questions/50690139
复制相似问题