日期:2014-05-16  浏览次数:20966 次

c# datalist
我想动态获取第一行某一列的数据并修改它,然后update到数据库,时间很急,求回复!!

<table id="customers" width="100%" cellpadding="0" cellspacing="0" border="1px">
                 <tbody>
                    <tr align="center" valign="middle" height="30px">
                      <th width="20%"><font size="4" face="宋体" color="#5E5E5E">编号</font></th>
                      <th width="30%"><font size="4" face="宋体" color="#5E5E5E">送达时间</font></th>
                      <th width="20%"><font size="4" face="宋体" color="#5E5E5E">操作</font></th>
                    </tr>
                   <asp:DataList ID = "Orders_list" runat = "server" RepeatLayout = "Flow" RepeatDirection="Horizontal">
                        <ItemTemplate>
                            <tr height="30px" align="center" valign="middle">
                                  <td><font size="3" face="宋体" style="font-weight: bold"><%# Eval("ord_no")%></font></td>
                                 <td><font size="3" face="宋体" style="font-weight: bold"><%# Eval("sed_time")%></font></td>
                                  <td><a href="MemberOrderDetails.aspx?ord_no=<%# Eval("ord_no") %>"><font size="3" face="宋体" style="font-weight: bold">查看</font></a> </td> 
                            </tr>
                        </ItemTemplate> 
                     </asp:DataList>
                    </tbody>
                </