Use the DataGrid superjoin to pass the value

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.