How to pass multiple values through command argument in Asp.net?

前端 未结 4 1410
暖寄归人
暖寄归人 2021-02-05 02:29

I have ImageButton with CommandArgument attribute which is having multiple Eval value. When I click one of them I want to pass values to ImageButton2_Click event but it does not

4条回答
  •  悲哀的现实
    2021-02-05 03:00

    You can try this:

    CommandArgument='<%# "scrapid=" + Eval("ScrapId")+"&"+"UserId="+ Eval("UserId")%>'
    

提交回复
热议问题