Gridview编辑ASP.NET [英] Gridview Editing ASP.NET

查看:74
本文介绍了Gridview编辑ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果该字段在gridview中具有值,则如何显示确认"对话框
否则,显示文本框以输入值.

在Advance中感谢

How to display the Confirmation dialog box, if the the field having value in gridview
Otherwise display the text box to enter the value.

Thanks in Advance

推荐答案

在设计视图中查看,您可以设置空数据字段值消息.因此,如果网格中没有来自数据库的输出,它将显示该消息.

< asp:gridview id ="Grd1" runat ="server" emptydatatext ="No value" xmlns:asp =#unknown">

因此,如果网格为空,则它将返回无值"消息
See in the Design View u can Set Empty data Field Value Message .So If there is No OUtput From database in grid .It will Show That Message .

<asp:gridview id="Grd1" runat="server" emptydatatext="No value" xmlns:asp="#unknown">

so if the grid is empty it will return Message as No Value


这篇关于Gridview编辑ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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