devxlogo

Creating DataGrid’s hyperlink columns with multiple parameters in the Url

Creating DataGrid’s hyperlink columns with multiple parameters in the Url

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:


   
                BuildUrlWithQueryString(“Details.aspx”, _
         “EmployeeID”, Container.DataItem(“ID”),
         “EmployeeName”, Container.DataItem(“FirstName”)) %>’ />
   

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist