DataGrid hyperlink binds more than one field

xiaoxiao2021-03-06  42

The DataGrid's HyperLinkColumn column is great to have a column with an hyperlink that points to an Url with a parameter whose value is taken from the data source, but what if you need to build the target Url with more than one parameter taken from the data source ? In this case you can use a template column as Follows:

Instead of doing the string concatenation YOURSELF you can use the buildurlwith QueryString Function, Which Must Be Declared with public / protected, as flollows:

http://java.mblogger.cn/brian_jin/posts/2792.aspx

转载请注明原文地址:https://www.9cbs.com/read-74917.html

New Post(0)