ASP.NET:检查page_load中的click事件

use*_*053 12 .net c# asp.net pageload

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

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

Jar*_*red 21

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();
}
Run Code Online (Sandbox Code Playgroud)