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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:12:53+00:00 2026-06-14T06:12:53+00:00

I am trying to create a view with multiple product listing in it. An

  • 0

I am trying to create a view with multiple product listing in it. An example is below of how the product listing should look like. I am not sure if I should use a table and create a new table for each new product or what. I am not a very good ASP.NET developer and I am not sure how to approach this.

Basically if I have 10 results I need to display 10 of these in a list and each button and image is different based on each product result.

The source of data is from another class that was built and runs through a foreach for each product. Any guidance on this would be helpful. I just think I need to be pointed in the right direction because I tried it with a table and it wasn’t working out to well.

Product List Sample

  • 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-14T06:12:55+00:00Added an answer on June 14, 2026 at 6:12 am

    Using GridView

     <asp:GridView runat="server" ID="myGrid" 
        OnRowCommand="MyGrid_RowCommand">
     <Columns>
        <asp:TemplateField>
        <ItemTemplate>
            <img src='<%# Eval("SmallImageUrl") %>' />
        </ItemTemplate>
        </asp:TemplateField>
    
        <asp:TemplateField>
        <ItemTemplate>
            <div>Title: <%# Eval("Title") %>  </div>
            <div>Weight: <%# Eval("Weight") %>  </div>
            <asp:Button runat="server" ID="GetOfferButton" CommandArgument='<%# Eval("OfferID") %>'></asp:Button>
        </ItemTemplate>
        </asp:TemplateField>
     </Columns>
     </asp:GridView>
    

    Assuming you have a collection of Products e.g. List, or DataTable of Product etc., and your collection has these fields

    class Product
    {
       //property Title
       //property SmallImageUrl
       //property Weight
    }
    

    You can have

    myGrid.DataSource = <Replace with List of Products collection>;
    myGrid.DataBind();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create table from view from remote server (calling procedure UPDATE_PROC), like
I'm trying to create a subset of a table (as a materialized view), defined
I was trying to create custom view pages in ROR as seen in http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator
I'm trying to create custom binding in knockout to use it as multiple selection
I'm trying to create a layout with multiple buttons, But all buttons was not
Not sure what I am doing wrong here. But I am trying to create
I'm trying to create a view in android that looks like: Text Radio Button
I am trying to create multiple views in my view-based iPhone app in Xcode
I am trying to create a grid view containing multiple rows and columns of
I am trying to create multiple records with two collections that i have View

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.