网格视图的单列中的标签和文本框

问题描述:

如何在标签工具中显示从数据库中检索到的列的字段,而在表的同一列中新输入的值应在文本框工具中.?

how to display the fields of a column retrieved from database in label tool and the values newly entered in the same column of the table should be in textbox tool.?

尝试一下..

try this..

<itemtemplate>
   <asp:label id="lbl" runat="server" text="<%# Eval("DbCol") %>" xmlns:asp="#unknown"></asp:label>
<br />
<asp:textbox id="txt" runat="server" xmlns:asp="#unknown"></asp:textbox>
</itemtemplate>


希望这会有所帮助.


hope this helps..