Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6173999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:40:31+00:00 2026-05-23T23:40:31+00:00

I have a gridview that is being populated from a datasouce. The Stored procedure

  • 0

I have a gridview that is being populated from a datasouce.
The Stored procedure that is populating the datasource, has a field “Client” and a field “Client WebSite”.

I want to populate the field “Client” in the gridview column called “Client” which would be a hyperlink field and the hyperlink field would be the “Client WebSite” value from the dataset. The client website is an external site (not within my asp project)

Below is my html code. How can I get the “Client WebSite” appear as the DataNavigatrURL value?

            <asp:HyperLinkField DataTextField="Client" HeaderText="Client" DataNavigateUrlFields="Client"
                DataNavigateUrlFormatString="Client WebSite">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:40:32+00:00Added an answer on May 23, 2026 at 11:40 pm

    Use databinding on the NavigateUrl attribute, like this:

    NavigateUrl = '<%# Bind("ClientWebSite") %>'
    

    Or more fully:

    <asp:HyperLinkField DataTextField='<%# Bind("Client" %>' HeaderText="Client" NavigateUrl='<%# Bind("ClientWebSite") %>'>
        <HeaderStyle HorizontalAlign="Center" />
        <ItemStyle HorizantalAlign="Left" />
    </asp:HyperLinkField>
    

    DataNavigateUrlFields is used to gets or set the names of the fields from the data source used to construct the URLs for the hyperlinks in the HyperLinkField object.

    ‘DataNavigateUrlFormatString` is used to gets or sets the string that specifies the format in which the URLs for the hyperlinks in a HyperLinkField object are rendered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GridView being populated from a non-SQL database that we use internally.
I have a ASP.net gridview that I am trying bind to. My DataSource has
I have a gridview that is bound to a datasource on a Windows Form
I have a gridview that is bound to a datasource (Windows Forms, VB.NET). One
I have a GridView that has 3 columns: FirstName, LastName and a TemplateField FullName
I have a gridview that contains value of every rows read from a text
Basically, I have a gridview that is opened in a new window from the
I have a gridview that is populated on the Page_Load event if !PostBack is
I have a grideview that is being populated by an ObjectDataSource. In the EditItemTemplate,
I have a gridview which is being populated at runtime(using sessions) by entering the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.