1、后台动态生成链接列 传递一个参数。(HyperLinkField  不支持多参数传值)

HyperLinkField hlf = new HyperLinkField();
hlf.HeaderText 
= "诊断";
////string[] canshu = new string[4] { "stationid", "datetime", "devicetypename", "objid" };
////hlf.DataNavigateUrlFields = canshu;
////hlf.DataNavigateUrlFormatString = "~/diagnose/DiagnoseGeneral.aspx?stationid={0}&datetime={1}&devicetypename={2}&objid={3}";
hlf.DataNavigateUrlFormatString = "~/diagnose/DiagnoseGeneral.aspx?stationid={0}";
hlf.Text 
= "诊断";
gv.Columns.Add(hlf);

相关文章:

  • 2022-12-23
  • 2021-09-28
  • 2021-05-21
  • 2021-08-27
  • 2021-12-03
  • 2021-07-15
  • 2021-11-03
  • 2022-01-08
猜你喜欢
  • 2021-07-20
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案