Create a HTML table with an ASP repeater, repeating horizontally

后端 未结 1 1073
别跟我提以往
别跟我提以往 2021-01-18 07:47

I\'m trying to build a HTML table using an ASP repeater:


    
                


        
1条回答
  •  一向
    一向 (楼主)
    2021-01-18 08:15

    I think the core problem is that Repeater isn't designed to repeat horizontally.

    Maybe you should try using DataList which allows to specify the RepeatingDirection.

    Update

    If you don't need to repeat horizontally (like your question suggests "...two lines and X columns") your Repeatershould look like this

    
    
        
            
            
            
    <%# Eval("nameVersion") %> <%# Eval("DocumentName") %>

    Note that you must not repeat the

    in your and to use single quotes when you need to put your Eval inside an attribute.

    0 讨论(0)
    提交回复
    热议问题