When I used the DataGrid hyperlink to pass the value in an information publishing system today, I thought it was useful and wrote it down.
The Code is as follows:
<Asp: hyperlinkcolumn target = "_ blank" datanavigateurlfield = "ggbt" datanavigateurlformatstring = "shanshi. aspx? Rowid = {0} "datatextfield =" ggbt "headertext =" ad title "> </ASP: hyperlinkcolumn>
The following is a description of the value passing through the DataGrid superjoin:
Target = "blank" // indicates running the display on another page.
Datanavigateurlfield = "ggbt" // field name of the field where the value to be transferred is located.
Datanavigateurlformatstring = "shanshi. aspx? Rowid = {0} "// set or obtain the display mode of the page address to be transmitted.
Datatextfield = "ggbt" // field name of the value to be transferred.
Headertext = "ad title" // Text of the value to be transferred.
Note:
After the numeric value is transferred, You need to receive it on the receiving page.
Variable name = request. querystring. Get ("ggbt ");
In this way, the superlink value of the DataGrid is uploaded.