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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:17:05+00:00 2026-05-27T08:17:05+00:00

I have a stored proc that returns 4 rows in a table. Each row

  • 0

I have a stored proc that returns 4 rows in a table. Each row corresponds to a day a person is staying at a hotel, so when I bind a repeater to it, 4 rows show up. Two of the rows are the same room and the other two are the same room. I want to display credit card information, but not for each individual room, only for every set of rooms that is the same, so it would look something like this:

12/7/2011 Room 1

12/8/2011 Room 1

Credit Card Info

12/7/2011 Room 2

12/8/2011 Room 2

Credit Card Info

I don’t want to combine Room information and credit information into a one row each. How can I get this to format the way I want it to?

Currently I am displaying Room Information in an ItemTemplate and inside the ItemTemplate is a tr and td’s.

  • 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-27T08:17:06+00:00Added an answer on May 27, 2026 at 8:17 am
    //Create either a HashTable() 
    //or a Dictionary<int, string[]> I would personally use a Dictionary<> 
    
    //create an instance of what ever collection you want to use or array
      //List<string>
      //Dictionary<int, string[]>() using the room number as the key
      // you would add the values to either the List<> or a String[] array or a Dictionary
    keey in mind that if you want to create a dynamic string[] array and you do not know how many elements you are going to add just use a List<> or Dictionary<int,string>
    and you can always convert that object using .ToArray 
    so for example 
    
    
    List<string> lstRoomList = new List<string>();
    string[] arrayRoom = {};
    if you have a DataReader for example and you are doing something like 
    while (yourdataReader.Read())
    {
      // here you can decide how you are going to work with the data you 
      lstRoomList.Add(datareader["roomnubmer"] + " " + datareader[CreditCarInfo];
    }
    at the end you could assign the values of that list to a dynamic array
    arrayRoom = kstRoomList.ToArray(); I would really need to see what you are using and how you are returning the StoredProc results..
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi have a stored proc that always returns a single row depending of a
I have a stored procedure that returns around 1000 rows. I want to SELECT
I have a stored procedure that returns a table (or dataset or view or
I have a stored proc that returns a resultset thus: testID(guid), testName, outcomeID(guid), outcomeName
I have a stored procedure (below) that returns the entire table. I am trying
I have a stored proc that processes a large amount of data (about 5m
I have a Stored Proc that do a validation on a parameter ex. IF
So I have a Sybase stored proc that takes 1 parameter that's a comma
I have a stored proc on sql server 2008 that excepts a int parameter.
I have a stored proc on an existing 3rd party application (SQL 2005) that

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.