对于这个看起来很初级的问题,我深表歉意,但在 C# 中还有很多东西要学!
在某些条件下,我试图在页面加载时弹出一条消息。
我的 If/Else If 已全部设置并且工作正常,现在我需要在满足某些条件时添加弹出消息。
我的问题是,我只使用过这样的东西:
ScriptManager.RegisterStartupScript(btnSubmitWork, typeof(Button), "Data Entry",
"alert('Please note that you are in the UAT link')", true);
但是,这次将不涉及任何按钮,我希望它在页面加载时弹出。
如何实现?