asp.net button 绑定多个参数


复制代码 代码如下:

CommandName="id_" CommandArgument='<%#Eval("id_comments_")+","+Eval("iscertification_comments_") %>' OnCommand="comment_click"


复制代码 代码如下:

protected void comment_click(object sender,CommandEventArgs e)
{
string temp = e.CommandArgument.ToString();
MessageBox.Show(temp);
}


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3