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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:06:33+00:00 2026-05-26T03:06:33+00:00

I am displaying a list of accounts objects in a repeater. Each object contains

  • 0

I am displaying a list of accounts objects in a repeater. Each object contains three fields namely studentID, studentName and studentAge. I have wrapped it with a link button. As a result the each individual item which is displayed is clickable. I have also added a click handler to the link button. The problem is that how am I supposed to know which student was clicked? Because originally I want to navigate to the next page and display that particular student’s details. Once I know which student is clicked then I can store his details in a session object and then navigate to the new page and get it back.

Thanks for your help.

  • 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-26T03:06:34+00:00Added an answer on May 26, 2026 at 3:06 am

    In your case, it would be better to use a normal hyperlink, pass the ID as query string, and have the new page get the details.

    <asp:HyperLink runat="server" 
                   NavigateUrl='<%# Eval("studentID", "StudentDetails.aspx?id={0}") %>'
                   Text="Details" />
    

    Update:

    To get the studentID on the same page, use the ItemCommand event instead and have the LinkButton as follows:

    <asp:LinkButton runat="server"
                    CommandName="StudentDetails"
                    CommandArgument='<%# Eval("studentID") %>' />
    

    The studentID will be stored into the CommandArgument property, which value will be passed to the ItemCommand event handler.

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

Sidebar

Related Questions

I'm displaying a list of users. Each user record has a TrainingEvent object property
I am displaying the list of objects in the html table. i have the
I have made a drag-to-trigger_event page based on this guide . I'm displaying list
I have a problem displaying zebra list after filtering results. I have a zebra
I have a UITableView where I am displaying a list of data. I would
I have a JSP that I am displaying a list of items on. The
I have a drop down list displaying values in a select tag that I
I have a UITableView displaying a list of Cities. I want to separate them
Imagine I have a PartialView displaying a list of articles. And I have a
I've got a Repeater displaying a list of Countries, and nested within this is

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.