The solution to another page after the confirmation box in .NET.

xiaoxiao2021-03-06  61

Everyone may find that response.redirect ("aaa.aspx");

The previous Alert or the confirm box is invalid.

The reason is that Alert is an event that calls the client, and response.Redirect is also interacting on the client, and the latter blocked the former.

The use of Server.Transfer ("aaa.axpx") can solve this problem because it does not need to conflict with the client.

转载请注明原文地址:https://www.9cbs.com/read-91110.html

New Post(0)