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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:05:35+00:00 2026-05-30T15:05:35+00:00

I have to generate DataLists at runtime according to the items selected by the

  • 0

I have to generate DataLists at runtime according to the items selected by the user.

How can this be done from the .aspx code-behind? I have a fixed HeaderTemplate and ItemTemplate format for each of the DataList that will be generated.

<HeaderTemplate>
<tr>Table Heading<tr>
<tr>    <th>ItemNo</th> <th>Item Detail</th><tr>
</HeaderTemplate>

<ItemTemplate>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item1")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item2")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item3")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item4")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item5")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item6")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item7")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item8")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item9")%></td> </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item10")%></td>    </tr>
<tr>    <td><%#CallFunc()%></td>    <td><%#Eval("Item11")%></td>    </tr>
</ItemTemplate>

A small example of this kind of runtime datalist generation, and assigning these templates to it would be greatly helpful.
Thanks

  • 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-30T15:05:37+00:00Added an answer on May 30, 2026 at 3:05 pm

    Why can not you use gridview?

    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="ItemID" HeaderText="Item ID" />
                <asp:BoundField DataField="ItemName" HeaderText="Item Name" />
            </Columns>
        </asp:GridView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to generate XML in the below format <objects> <items> <item =delete> <searchfields>
We have a requirement to generate PDF documents using information from a PDA /
I have to generate a PDF with TCPDF, my information come from my database,
I have to generate a WS Client and I can't decide which plugin to
I'm writing a simple eclipse plugin, which is a code generator. User can choose
For a SOAP service I have to generate an object, which can have an
I have a project where I have to generate random numbers from 00000 till
For an assignment I have to generate a prolog procedure body dynamically. How can
I have to generate a list of items on a website which are random
I have to generate about 800 excel files from an access database. For the

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.