如何通过选择特定行打开弹出页面以在ASP.NET中的网格视图控件中进行编辑 [英] How to open popup page to edit in grid view control in ASP.NET by selecting particular row

查看:65
本文介绍了如何通过选择特定行打开弹出页面以在ASP.NET中的网格视图控件中进行编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过选择特定的行打开弹出页面在asp.net中的网格视图控件中编辑,我有一个按钮作为添加按钮输入详细信息,我想在数据库中添加但是当我点击它应该打开弹出页面到在同一页面上的数据库中添加数据

how to open popup page to edit in grid view control in asp.net by selecting particular row and i have one button as add button which enters details and i want to add in database but when i click it should open popup page to add data in database on the same page

推荐答案

我同意Homero Rivera对该问题的评论。请查看我最近的答案,其中我解释了为什么弹出窗口不好并提出一些有用的替代方案:基于Web的ASP.NET应用程序的firefox弹出窗口中的问题 [ ^ ]。



但我不是说模态弹出解决方案必然是你需要的。一些其他解决方案只是改变布局以在同一页面上显示某些事件(向下钻取)的某些细节可能是有益的。例如,您可以保持所需的网格视图或其隐藏的部分(可能是折叠),直到向下钻取事件需要它为止。然后,您可以通过移动或隐藏其他元素或将其叠加在顶部来显示此元素。有许多类似的设计,其中一些甚至是用户友好的。 :-)



-SA
I agree with the comment to the question by Homero Rivera. Please see my recent answer where I explain why popup windows are bad and suggest some useful alternatives: Problem in firefox popup windows for web base ASP.NET application[^].

But I don't say that the "modal popup" solution is necessarily what you need. Some other solution which simply change the layout to show some detail on some event ("drill-down") on the same page can be beneficial. For example, you could keep required grid view or its part hidden (presumably "collapsed") until it is needed for a "drill-down" event. Then you can show this element by either moving or hiding other elements or by superimposing it on top. There are numerous designs like that, and some of them are even user-friendly. :-)

—SA


这篇关于如何通过选择特定行打开弹出页面以在ASP.NET中的网格视图控件中进行编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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