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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:32:49+00:00 2026-06-13T01:32:49+00:00

student code| student.Name |Region Name|Location Name| Assets Details | I have to display asset

  • 0

student code| student.Name |Region Name|Location Name| Assets Details |

I have to display asset details on the basis of each student. There can be more than one asset details for one student, how can i use this in repeater or gridview.

Table which i have in SQL.

Student Code   |   student name   |   Asset Details
1                                     Ray                       laptop
1                                     Ray                        Bed
2                                      Raj                       Phone
2                                      Raj                     charger\

 
….
I want to display asset details for each unique student code like this on my page.

Student Code | student name | Asset Details

1                               Ray                   laptop
                                                           Bed
2                               Raj                    Phone
                                                           
Charger

How do i perform the same with only one hit from sql.?

  • 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-13T01:32:51+00:00Added an answer on June 13, 2026 at 1:32 am

    You can do the following:

    Use a stored procedure to return two results set for the following queries

    SELECT DISTINCT StudentCode, studentname FROM StudentInfo
    
    SELECT StudentCode, student name, Asset Details
    

    Create a DataSet for the results with 2 tables. You can name the first table “Student” and the second table “StudentInfo”

    Create a relationship for the tables (please use the intellisense for syntax)

    DataSet.Relationships.Add("RelationshipName",Table1.StudentCode,Table2.StudentCode)
    

    Bind the GridView with the DataSet

    Create a Template column for Asset Details and insert a repeater or Gridview for that column.

    On the ItemDataBound event of the GridView.

    DataRowView drv = (DataRowView)e.ItemData;
    Repeater.DataSource = dv.CreateChildView();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code struct Student { char name[48]; float grade; int marks[10,5]; char
We have some Well-Attributed DB code, like so: [Display(Name = Phone Number)] public string
I have the code as below. class Student : IPeople { private string name;
Let's have this code : class student :IComparable , IComparable<student> { public string name
I have a piece of code ( I'm student ) that should work in
The below code doesn't it print the value. function go(x) { alert(x.options.selectedIndex.value); //location=document.menu.student.options[document.menu.student.selectedIndex].value }
I have the following code: #include <iostream> #include Student.h <-- fixed the problem #include
I have a table student like this id | name | zip 1 |
I have the following block of code: class Student{ int age; //instance variable String
I have these two classes: class Student { String name; String age ; }

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.