Show multiple result in asp.net web forms Datalist

pb 1 Reputation point
2021-05-06T14:08:18.507+00:00

I am new to Asp.net and C#. I have to implement a Datalist that have multiple different type-size and result rows. But I do not know how to do this. As shown below.94405-multi.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,962 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,081 Reputation points
    2021-05-07T05:54:02.447+00:00

    Hi @pb ,
    As far as I think,you could create four table in the datalist. Just like this:

    <asp:DataList runat="server" ID="dl">  
                    <ItemTemplate>  
                        <table>  
                            <tr>  
                                <td></td>  
                                <td></td>  
                                <td></td>  
                                <td></td>  
                            </tr>  
                        </table>  
                        <table>  
                            <tr>  
                                <td></td>  
                                <td colspan="3"></td>  
                            </tr>  
                        </table>  
                        <table>  
                            <tr>  
                                <td></td>  
                            </tr>  
                            <tr>  
                                <td></td>  
                            </tr>  
                            <tr>  
                                <td></td>  
                            </tr>  
                        </table>  
                        <table>  
                            <tr>  
                                <td></td>  
                            </tr>  
                            <tr>  
                                <td></td>  
                            </tr>  
                            <tr>  
                                <td></td>  
                            </tr>  
                        </table>  
                    </ItemTemplate>  
                </asp:DataList>  
    

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.