.NET数据控件 e.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 @ 2012-02-21 10:29  狄大人  阅读(1403)  评论(0编辑  收藏  举报