执行操作后阻止gridview中的超链接 [英] block hyperlink in gridview after action is performed

查看:62
本文介绍了执行操作后阻止gridview中的超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网格视图,其中包含一个像raise raise声明这样的超链接,一个column0作为策略ID。

我在网格视图中想要的是当针对任何策略ID提出任何提出声明然后该超链接应该是活跃的。我的意思是没有人可以再次针对该政策ID提出任何索赔。

请告诉我如何继续。

i have a grid view with a hyperlink like raise claim and a column0 as policy id.
what i want in my grid view is when any raise claim is raised against any policy id then that hyperlink should be in active. i mean no one can again raise any claim against that policy id.
please tell me how i can proceed.

推荐答案

嗨Prachi,

您需要在数据库中保留一个指标/列分别用每个 Policy Number ClaimRised 。您可以将此字段保留为布尔值(易于维护 LinkBut​​ton 的启用/禁用功能)。每当客户端声明策略号时,请将指示符字段更新为false。在绑定gridview时,您可以轻松启用基于指示符禁用字段(我的意思是每当指标字段为true时,启用 LinkBut​​ton ,否则禁用它)。



希望你有我的观点。

--Amit
Hi Prac
You need to keep an indicator/column in database say "ClaimRised" with each Policy Number respectively. You can keep this field as boolean(Easy to maintain Enable/Disable functionality for LinkButton). Whenever the client claim against the policy number, update the indicator field to false. While binding the gridview you can easily enable disable the field based on the indicator(I mean whenever the indicator field is true for the policy enable the LinkButton, otherwise disable it).

Hope you got my point of view.
--Amit


这篇关于执行操作后阻止gridview中的超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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