How do you concatenate text when using Bind expression in asp.net

前端 未结 4 1615
有刺的猬
有刺的猬 2020-12-31 05:51

What is the syntax to concatenate text into a binding expression for an asp.net webpage (aspx).

For example if I had a hyperlink that was being bound like this:

4条回答
  •  情话喂你
    2020-12-31 06:47

    You could use the following:

    CommandArgument='<%#String.Format("{0}|{1}", Eval("ArgZero"), Eval("ArgOn"))%>'
    

提交回复
热议问题