网格视图的单列中的标签和文本框 [英] label and textbox in a single column of grid view

查看:48
本文介绍了网格视图的单列中的标签和文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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..


这篇关于网格视图的单列中的标签和文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆