.NET数据控件 e.commandargument()绑定多个值

mac2022-06-30  19

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]);                       }}

转载于:https://www.cnblogs.com/LYunF/archive/2012/02/21/2360912.html

最新回复(0)