平时使用Page.ClientScript.RegisterClientScriptBlock可以把脚本注册到页面中执行,
但是如果含有updatepanel时,局部刷新的情况下无法通过它注册脚本。
这时可以通过ScriptManager.RegisterClientScriptBlock即可。
Powered by: 博客园 Copyright © 2024 懒人ABC Powered by .NET 8.0 on Kubernetes