0

我有一个带有超链接的网格视图。有没有办法计算这个超链接的点击次数?它计算一个文档被下载了多少次。

这是我目前所拥有的......

<Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" 
                ReadOnly="True" SortExpression="Id" />

            <asp:hyperlinkfield headertext="Download File " datatextfield="FileName" datanavigateurlfields="FileName" datanavigateurlformatstring="~/Files/{0}" />

            <asp:BoundField DataField="Username" HeaderText="Username" 
                SortExpression="Username" />
            <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
            <asp:BoundField DataField="College" HeaderText="College" 
                SortExpression="College" />
            <asp:BoundField DataField="Year" HeaderText="Year" SortExpression="Year" />
            <asp:BoundField DataField="Major" HeaderText="Major" SortExpression="Major" />
            <asp:BoundField DataField="Subject" HeaderText="Subject" 
                SortExpression="Subject" />
            <asp:BoundField DataField="Downloads" HeaderText="Downloads" 
                SortExpression="Downloads" />
        </Columns>
4

0 回答 0