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 8425397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:15:34+00:00 2026-06-10T04:15:34+00:00

I have an asp:gridview populated with SQL (MSSQL 2008) data. The cells have naivgateurl

  • 0

I have an asp:gridview populated with SQL (MSSQL 2008) data. The cells have naivgateurl fields so I can redirect users to a special page with some charts. Since there are multiple vehicles displayed in the table, I want users to get specific info on each vehicle when they click that specific row. So basically, I want the URL to go to ~\charts\load.aspx?ID=1 where 1 is the ID number of that car in the database. Can anyone point me in the right direction? I have seen some examples, but they are not related enough to my requirements for me to figure it out. My page uses C#. Thanks for any assistance!

  • 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-06-10T04:15:35+00:00Added an answer on June 10, 2026 at 4:15 am

    You could try something like this:

    <asp:GridView ID="oGridView" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="oObjectDataSource" AutoGenerateColumns="False" Width="100%" CellPadding="3" PageSize="50" GridLines="None">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" HeaderStyle-HorizontalAlign="Left" ReadOnly="true" />
            <asp:HyperLinkField DataNavigateUrlFields="CarID" DataNavigateUrlFormatString="/charts/load.aspx?ID={0}" DataTextField="CarName" HeaderText="CarName" SortExpression="CarName" HeaderStyle-HorizontalAlign="Left" />
        </Columns>
        <PagerSettings Mode="NumericFirstLast" Position="TopAndBottom" />
    </asp:GridView>
    

    You’ll need to:

    • Change the DataField values to actual column names being returned in your data source
    • In the HyperLinkField, ensure that you’ve updated both the DataNavigateUrlFields value and the DataTextField value with appropriate column names from your datas ource

    I hope this is what you’re looking for.

    Cheers!

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

Sidebar

Related Questions

I have an ASP.NET GridView which is populated from a SQL Server database. This
I have a GridView that gets populated with data from a SQL database, very
I have a ASP.NET Website, where, in a GridView item template, automatically populated by
I have an asp:GridView tied to an asp:SqlDataSource that gets populated after the user
(ASP.net 3.5, C#, SQL Express 2008) I want to have a Web Form, where
On an ASP.NET page, I have a GridView populated with the results of a
I have a gridview that is populated from an entitydatasource in asp.net. In my
I have asp:GridView displaying client requests using asp:SqlDataSource . I want to limit displayed
I have a asp:GridView which contains a asp:TextBox within a TemplateField. I would like
I have a asp:GridView with a HyperLinkField . It's DataNavigateUrlFormatString property is set to

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.