当前位置:编程学习 > C#/ASP.NET >>

在html的<td>标签里用sql语句的别名??

<asp:TemplateField HeaderText="出生证号">
                                  <HeaderTemplate>
                                     <table border="0" cellpadding="0" cellspacing="0" style="height: 26px" width="100%">
                                        <tr>
                                           <td style="background-image: url(../res/ycf/bg.gif); width: 100%; height: 100%; text-align: center">
                                              出生证号</td>
                                        </tr>
                                     </table>
                                  </HeaderTemplate>
                                  <ItemTemplate>
                                     <asp:Label ID="Label1" runat="server" Text='<%# Bind("证号") %>'></asp:Label>
                                  </ItemTemplate>
                                  <HeaderStyle Width="80px" Wrap="False" />
                                   <ItemStyle Wrap="False" />
                               </asp:TemplateField>
现在画面上这个列名“出生证号”是写死的,现在想用sql语句的字段别名,怎么弄啊?? --------------------编程问答-------------------- 或者是在数据绑定后,怎么更改这个列名!!
补充:.NET技术 ,  VB.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,