CommandArgument传多个值

CommandArgument=' <%# Eval("ID ") + "|" + Eval("Count") + "|" + Eval("Price")  %>'
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "btnChange")
        {
string[] sArray = e.CommandArgument.ToString().Split('|');
            Response.Write(sArray[0] + "," + sArray[1]);
        }
}

posted @ 2009-12-07 14:30  溪水云天  阅读(506)  评论(0编辑  收藏  举报