ASP.Net Count Download Clicks

前端 未结 2 1105
眼角桃花
眼角桃花 2021-01-24 08:23

I thought that this was easier…

I have a asp:hyperlink control, with target=”_blank”, pointing to the file I want the user to download. My plan is to track

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 09:24

    You can add an onclick to an asp hyperlink like so:

    aHyperlinkControl.Attributes.Add("onclick", "jsCallToSendCountToServer();");
    

提交回复
热议问题