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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:02:15+00:00 2026-05-31T08:02:15+00:00

I have a .Net 2.0 project where I’d like to take the value from

  • 0

I have a .Net 2.0 project where I’d like to take the value from the ID boundfield and pass that to the query string constructor of a Hyperlink field’s navigate URL.

<asp:BoundField HeaderText="ID" DataField="ID"></asp:BoundField>
<asp:hyperlinkfield HeaderText="Page Link" DataTextField="title" text="{0}" navigateurl="~\page.aspx?id={THE ID VALUE}" />

So in each row, the link would have the ID of the page in the querystring.

<a href="page.aspx?id=1234">

I don’t know if DataControlField.CloneField Method or CopyProperties might be of any help. Is so, can you post an example of how to use them in this case?

In the codebehind, I do not have any databinding events. I have a Viewstate which is filled from the dataset of a SQL View.

  • 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-31T08:02:16+00:00Added an answer on May 31, 2026 at 8:02 am

    I assume you’re using a GridView control.

    Here is an example of how you can achieve what you’re trying to do:

    <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="false">
        <Columns>
            <asp:BoundField HeaderText="ID" DataField="ID"></asp:BoundField>        
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="page.aspx?id=<%# Eval("ID") %>"><%# Eval("DynamicTitle") %></a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

VS2005.NET I have a website project that references 3rd party dll's and i'd like
I have a .net project that has a web reference to a service. I
I have a .net project (MySolution.Common) that uses the app.config. I am using the
I have a .NET project which references another assembly that is built outside of
I have a .net interop project that uses an app.config file. When I am
I have a .NET deployment project. I would like to add a custom uninstall
I have a .NET setup project that installs and uninstalls my application fine but
I have an existing ASP.Net MVC project that is using entities / repositories in
We have a .NET project that uses WMI and are interested in porting it
I have a .net-website project and want to get some file from app_data folder.

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.