gpt4 book ai didi

c# - ASP.NET : Check for click event in page_load

转载 作者:可可西里 更新时间:2023-11-01 08:16:38 24 4
gpt4 key购买 nike

在 C# 中,如何检查是否在页面加载方法中单击了链接按钮?

我需要知道在触发点击事件之前它是否被点击。

最佳答案

if( IsPostBack ) 
{
// get the target of the post-back, will be the name of the control
// that issued the post-back
string eTarget = Request.Params["__EVENTTARGET"].ToString();
}

关于c# - ASP.NET : Check for click event in page_load,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/188584/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com