CommandArgument 绑定多个参数

    前台绑定:

   CommandArgument='<%# Eval("ReviewId")+","+Eval("isconfirm") %>'

 

后台获取:
        string temp = e.CommandArgument.ToString();

       string[] estr = e.CommandArgument.ToString().Split(',');

       int reviewid = Convert.ToInt32(estr[0]);
       string isconfirm = Convert.ToString(estr[1]);

你可能感兴趣的:(command)