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

  • Home
  • SEARCH
  • 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 7839085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:19:17+00:00 2026-06-02T15:19:17+00:00

The list of items (hyperlinks) is shown in a listview retrieved by a query.

  • 0

The list of items (hyperlinks) is shown in a listview retrieved by a query. And on clicking, it redirects to another page where i need to fetch the data of that item by using its name, which is the text that item(hyperlink). How do i access the text property (name) of the item that was clicked on?

  • 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-02T15:19:18+00:00Added an answer on June 2, 2026 at 3:19 pm

    If you are indeed clicking a hyperlink which redirects to another page, you cannot get that information.

    The only way to do it would be to include the information you need in a querystring, and parse the querystring on the next page.

    However, if you are posting the form to another page, and your hyperlink is actually an input, your information will be available in the post data.

    If your hyperlink is actually a server control, there are many possibilities.

    It might help to see some code.

    OK, if this is your code:

    <td> 
        <asp:Hyperlink ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' NavigateUrl="~/anotherpage.aspx"/> 
    </td>
    

    There are a few things you can do. First, you can change your asp:Hyperlink to an asp:LinkButton add a click event and remove the NavigateUrl property:

    <td> 
        <asp:LinkButton ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' OnClick="NameLabel_Click"/> 
    </td>    
    

    Now, use the event handler to do what you need:

        //Use querystring
        protected void NameLabel_Click(object sender, EventArgs e)
        {
            var link = sender as LinkButton;
            Response.Redirect(String.Format("anotherpage.aspx?name={0}", link.Text));
        }
    
        //Use session
        protected void NameLabel_Click(object sender, EventArgs e)
        {
            var link = sender as LinkButton;
            Session["name"] = link.Text;
            Response.Redirect("anotherpage.aspx?");
        }
    

    Then, in the Page_Load event of your landing page, you can do this:

    //Session
    var name = Session["name"];
    
    //Querystring
    var name = Request.QueryString["name"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often need to list items with various-sized images on the left and text
I have a set of list items in unordered lists that I bind the
I`v come across a need where I want to create multiple list items from
I'm getting a list of review items from a web service that dictates what
I use a ListView to display (funnily enough) a list of data, including a
I have a list of hyperlinks that are displayed through an ItemsControl , something
I have a that has a bunch of list items, each with an image
I have the following code that outputs a number of list items <li> wrapped
I need to know how to insert a list item with a hyperlink field
I have a simple unordered list with list items as menu item i created

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.