Search code examples
c#asp.netsql-serverrepeaterdatarepeater

Count number of download of file through repeater in asp.net


I want to count number of download of particular file in asp.net, I am using repeater and file source is CommandArgument='<%#Eval("source").

but problem is how to pass file id, can it possible pass two CommandArgument in repeater. click here.. CommandArgument in repeater


Solution

  • Use one as CommandArgument='<%#Eval("source")%>' and Second as CommandName='<%#Eval("fileId")%>'. get command name value on code behind same as a command argument.