GridView,当倒数第二行发生更改时弹出? [英] GridView, popup when second last row changes?

查看:115
本文介绍了GridView,当倒数第二行发生更改时弹出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我的网页上有这个gridview

A B C D
1 2 3 4
8 34 95 100
10 8 95 60
25 4 95
70 32 78 96
34 88 78 200
"A"列是一个链接按钮
我想向用户显示一个弹出窗口,如果倒数第二行发生变化,例如,如果用户单击8,则我将在"C"列中查找值,而C列中的值是95,所以我不会如果用户单击8、10和25,则向用户显示一个弹出窗口,但如果用户单击70、34和1,我将向其显示弹出窗口.
同样,如果用户单击70,则如果单击34,则不会向用户显示弹出窗口;但是,如果用户单击1、8、10、25,则将向其显示一个弹出窗口,说最后第二行已更改"
如何以一种优雅的方式实现此逻辑.

Hello Everyone,
I have this gridview on my web page

A B C D
1 2 3 4
8 34 95 100
10 8 95 60
25 4 95
70 32 78 96
34 88 78 200
column "A" is a linkbutton
I want to show the user a pop up window if the second last row changes so for e.g if the user clicks on 8 then I will look for value in column "C" and the value in column C is 95 so I won''t show the user a pop window if he clicks on 8, 10 and 25, but i will show him a pop up windows if he clciks on 70, 34, and 1.
Similarly if the user clicks on 70 then I won''t show the user a pop up window if he clicks on 34, but if the user clicks on 1, 8, 10, 25 then I will show him a pop window saying that "The second last row changed"
How can I implement this logic in an elegant way.

推荐答案

使用ajax弹出式扩展程序确实可以为您提供帮助.
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx [^ ]
use ajax popup extender this will really help you.
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx[^]


这篇关于GridView,当倒数第二行发生更改时弹出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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