Chinese Kongfu - 9cbs.com-WellCMS
  •  Home
  •  Tech
  •  Login
6miu盘搜
  1. Tech
  2. (Original) How to set multiple parameters for links in DataGrid

(Original) How to set multiple parameters for links in DataGrid

xiaoxiao2021-03-06  28

When using DataGrid, if you have an ASP: HyperLinkColumn, you want to use multiple parameters that need to be bound as the URL of the link, then change to the template column, use the normal LINK tag or ASP: HyperLink, below Two solutions for implementing multi-bound parameters. Also modified http://blog.9cbs.net/lovecherry/archive/2005/02/25/301441.aspx. (1) Backstage returns URL front desk Background protected String myfunc2 (Object S1, Object S2) {return "newpage.aspx? Name =" s1.toString () "& agn =" s2.toString ();} (2) Direct front Set URL

In fact, the above 2 programs are one thing, but the former is more clear, and it is easy to generate the URL in the background.

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

9cbs

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.036, SQL: 9